Skip to content

Commit

Permalink
Revert "feat: Add #nullable disable to generated C# code to avoid war…
Browse files Browse the repository at this point in the history
…nings (#2444)" (#2786)

This reverts commit ecd825e.

The `#nullable enable` annotation is a recent C# feature, so that commit
broke compatibility with some client code.

Fixes #2781
  • Loading branch information
cpitclaudel authored Sep 22, 2022
1 parent 6daf8a9 commit 2bc0042
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion Source/DafnyCore/Compilers/Compiler-Csharp.cs
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ protected override void EmitHeader(Program program, ConcreteSyntaxTree wr) {
wr.WriteLine("// Optionally, you may want to include compiler switches like");
wr.WriteLine("// /debug /nowarn:162,164,168,183,219,436,1717,1718");
wr.WriteLine();
wr.WriteLine("#nullable disable");
wr.WriteLine("using System;");
wr.WriteLine("using System.Numerics;");
wr.WriteLine("using System.Collections;");
Expand Down

0 comments on commit 2bc0042

Please sign in to comment.