Skip to content

Commit

Permalink
Release Dafny 3.9.1
Browse files Browse the repository at this point in the history
  • Loading branch information
atomb committed Oct 27, 2022
1 parent 7e83dfc commit 1a96473
Show file tree
Hide file tree
Showing 14 changed files with 34 additions and 15 deletions.
33 changes: 33 additions & 0 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,39 @@

See [docs/dev/news/](docs/dev/news/).

# 3.9.1

## New features

- The language server now supports all versions of z3 ≥ 4.8.5. Dafny is still distributed with z3 4.8.5 and uses that version by default. (https://github.com/dafny-lang/dafny/pull/2820)

- Introduce a new Dafny CLI UI that complies with the POSIX standard and uses verbs to distinguish between use-cases. Run the Dafny CLI without arguments to view help for this new UI. (https://github.com/dafny-lang/dafny/pull/2823)

## Bug fixes

- Correct error highlighting on function called with default arguments (https://github.com/dafny-lang/dafny/pull/2826)

- Crash in the LSP in some code that does not parse (https://github.com/dafny-lang/dafny/pull/2833)

- A function used as a value in a non-ghost context must not have ghost parameters, and arrow types cannot have ghost parameters. (https://github.com/dafny-lang/dafny/pull/2847)

- Compiled lambdas now close only on non-ghost variables (https://github.com/dafny-lang/dafny/pull/2854)

- Previously, for a file printing the number of arguments, `dafny printing.dfy -compileTarget:js --args 1 2 3` would print 4: one for the executable, one for each argument.
But `dafny -compile:2 -compileTarget:js printing.dfy; node ./printing.js` would print 5: One for `node`, one for `./printing.js`, and one for each argument.
This fix ensures that `node ./printing.js` is considered as a single argument, and the first argument, to be consistent with every other language.
(https://github.com/dafny-lang/dafny/pull/2876)

- Handle sequence-to-string equality correctly in the JavaScript runtime (https://github.com/dafny-lang/dafny/pull/2877)

- don't crash on type synonyms and subset types of array types in LHSs of simultaneous assignments (https://github.com/dafny-lang/dafny/pull/2884)

- Removed an bogus optimization on the Language Server (https://github.com/dafny-lang/dafny/pull/2890)

- The Dafny-to-Java compiler will now fully-qualify type casts in pattern destructors, avoiding "reference to TYPE is ambiguous" errors from javac. (https://github.com/dafny-lang/dafny/pull/2904)

- Variable declarations and formals in match cases do not trigger errors anymore. (https://github.com/dafny-lang/dafny/pull/2910)

# 3.9.0

- feat: Support for testing certain contracts at runtime with a new `/testContracts` flag (https://github.com/dafny-lang/dafny/pull/2712)
Expand Down
2 changes: 1 addition & 1 deletion Source/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<PropertyGroup>
<!-- Target framework -->
<TargetFramework>net6.0</TargetFramework>
<VersionPrefix>3.9.0.41003<!--Version 3.9.0, year 2018+4, month 10, day 3.--></VersionPrefix>
<VersionPrefix>3.9.1.41027<!--Version 3.9.1, year 2018+4, month 10, day 27.--></VersionPrefix>
<NoWarn>1701;1702;VSTHRD200</NoWarn>
</PropertyGroup>

Expand Down
1 change: 0 additions & 1 deletion docs/dev/news/2820.feat

This file was deleted.

1 change: 0 additions & 1 deletion docs/dev/news/2823.feat

This file was deleted.

1 change: 0 additions & 1 deletion docs/dev/news/2826.fix

This file was deleted.

1 change: 0 additions & 1 deletion docs/dev/news/2833.fix

This file was deleted.

1 change: 0 additions & 1 deletion docs/dev/news/2847.fix

This file was deleted.

1 change: 0 additions & 1 deletion docs/dev/news/2854.fix

This file was deleted.

3 changes: 0 additions & 3 deletions docs/dev/news/2876.fix

This file was deleted.

1 change: 0 additions & 1 deletion docs/dev/news/2877.fix

This file was deleted.

1 change: 0 additions & 1 deletion docs/dev/news/2884.fix

This file was deleted.

1 change: 0 additions & 1 deletion docs/dev/news/2890.fix

This file was deleted.

1 change: 0 additions & 1 deletion docs/dev/news/2904.fix

This file was deleted.

1 change: 0 additions & 1 deletion docs/dev/news/2910.fix

This file was deleted.

0 comments on commit 1a96473

Please sign in to comment.