You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
module {:options "--function-syntax:4"} M {
ghostfunctionf(): int { 4 }
}
Command to run and resulting output
dafny resolve test.dfy
What happened?
I expected the above to work. Instead it says
/Users/davidcok/projects/dafny/dafny/docs/HowToFAQ/tmp.dfy(1,9): Error: Option --function-syntax unrecognized or unsupported in ':options' attributes.
/Users/davidcok/projects/dafny/dafny/docs/HowToFAQ/tmp.dfy(1,9): Error: Option 4 unrecognized or unsupported in ':options' attributes.
Use /help for available options
/Users/davidcok/projects/dafny/dafny/docs/HowToFAQ/tmp.dfy(2,2): Error: a function cannot be declared 'ghost' (it is 'ghost' by default)
3 parse errors detected in /Users/davidcok/projects/dafny/dafny/docs/HowToFAQ/tmp.dfy
What type of operating system are you experiencing the problem on?
Mac
The text was updated successfully, but these errors were encountered:
davidcok
added
the
kind: bug
Crashes, unsoundness, incorrect output, etc. If possible, add a `part:` label
label
Dec 22, 2022
davidcok
changed the title
New-0style options are not supported in the :options attribute
New-style options are not supported in the :options attribute
Dec 22, 2022
Dafny version
3.10.0+dev
Code to produce this issue
Command to run and resulting output
What happened?
I expected the above to work. Instead it says
/Users/davidcok/projects/dafny/dafny/docs/HowToFAQ/tmp.dfy(1,9): Error: Option --function-syntax unrecognized or unsupported in ':options' attributes.
/Users/davidcok/projects/dafny/dafny/docs/HowToFAQ/tmp.dfy(1,9): Error: Option 4 unrecognized or unsupported in ':options' attributes.
Use /help for available options
/Users/davidcok/projects/dafny/dafny/docs/HowToFAQ/tmp.dfy(2,2): Error: a function cannot be declared 'ghost' (it is 'ghost' by default)
3 parse errors detected in /Users/davidcok/projects/dafny/dafny/docs/HowToFAQ/tmp.dfy
What type of operating system are you experiencing the problem on?
Mac
The text was updated successfully, but these errors were encountered: