-
Notifications
You must be signed in to change notification settings - Fork 256
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dafny crash on a recursive definition #2829
Labels
crash
Dafny crashes on this input, or generates malformed code that can not be executed
has-workaround: yes
There is a known workaround
part: resolver
Resolution and typechecking
Comments
Short repro:
Another short repro:
|
The fix in both cases is to use additional type annotations. This reveals that |
RustanLeino
pushed a commit
that referenced
this issue
Oct 31, 2022
This PR fixes #2829 I added the corresponding test <small>By submitting this pull request, I confirm that my contribution is made under the terms of the [MIT license](https://github.com/dafny-lang/dafny/blob/master/LICENSE.txt).</small>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
crash
Dafny crashes on this input, or generates malformed code that can not be executed
has-workaround: yes
There is a known workaround
part: resolver
Resolution and typechecking
When evaluating this code
With this command:
/home/codyroux/dotnet/dotnet Dafny.dll myfile.dfy /verifyAllModules /compile:0
gives the following error:
With
/version
givingng.ide-vscode-2.8.2/out/resources/nightly-2022-09-28-4b97862/dafny/Dafny.dll
.Apologies for the lack of example minimization.
The text was updated successfully, but these errors were encountered: