Open cpitclaudel opened 2 years ago
I can not reproduce the issue using cli or master branch. @MikaelMayer do you have any suggestion on how to reproduce it or this issue is somehow fixed?
➜ dafny git:(master) ✗ dafny --version
4.8.1
➜ dafny git:(master) ✗ dafny run demo.dfy
demo.dfy(1,41): Warning: the ... refinement feature in statements is deprecated
|
1 | method Abs(x: int) returns (y: int) { ...; }
| ^
demo.dfy(1,38): Error: skeleton statements are allowed only in refining methods
|
1 | method Abs(x: int) returns (y: int) { ...; }
| ^^^
1 resolution/type errors detected in demo.dfy
➜ dafny git:(master) ✗ Scripts/dafny run demo.dfy
demo.dfy(1,41): Warning: the ... refinement feature in statements is deprecated
|
1 | method Abs(x: int) returns (y: int) { ...; }
| ^
demo.dfy(1,38): Error: skeleton statements are allowed only in refining methods
|
1 | method Abs(x: int) returns (y: int) { ...; }
| ^^^
1 resolution/type errors detected in demo.dfy
The following code snippet crashes Dafny: