Skip to content

Commit

Permalink
Fix: Lower C# runtime version to 7.3 (#1877)
Browse files Browse the repository at this point in the history
* fix #1873
Enforces the runtime csharp version to be 7.3
  • Loading branch information
MikaelMayer authored Mar 1, 2022
1 parent 5641c36 commit 76c8d59
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
- feat: The keyword syntax for functions will change in Dafny version 4. The new command-line option `/functionSyntax` (see `/help`) allows early adoption of the new syntax. (https://github.com/dafny-lang/dafny/pull/1832)
- fix: No warning "File contains no code" if a file only contains a submodule (https://github.com/dafny-lang/dafny/pull/1840)
- fix: export-reveals of function-by-method now allows the function body to be ghost (https://github.com/dafny-lang/dafny/pull/1855)
- fix: Regain C# 7.3 compatibility of the compiled code. (https://github.com/dafny-lang/dafny/pull/1877)


# 3.4.2
Expand Down
2 changes: 1 addition & 1 deletion Source/DafnyRuntime/DafnyRuntime.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1199,7 +1199,7 @@ private ImmutableArray<T> ComputeElements() {

while (toVisit.Count != 0) {
var seq = toVisit.Pop();
if (seq is ConcatSequence<T> { elmts: { IsDefault: true } } cs) {
if (seq is ConcatSequence<T> cs && cs.elmts.IsDefault) {
(leftBuffer, rightBuffer) = (cs.left, cs.right);
if (cs.left == null || cs.right == null) {
// !cs.elmts.IsDefault, due to concurrent enumeration
Expand Down
1 change: 1 addition & 0 deletions Source/DafnyRuntime/DafnyRuntime.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
<PackageVersion>1.1.0</PackageVersion>
<TargetFramework>net6.0</TargetFramework>
<OutputPath>..\..\Binaries\</OutputPath>
<LangVersion>7.3</LangVersion>
</PropertyGroup>

<ItemGroup>
Expand Down

0 comments on commit 76c8d59

Please sign in to comment.