Open erniecohen opened 1 month ago
The documentation seems to indicate this should work, although I'm not used to this syntax either:
We could check with @RustanLeino to see whether he intends to keep the semantics as the documentation currently defines it.
A workaround is to skip the refinement notation, e.g.
module B refines A {
function F(x: int): (r: int)
{ x + 1 }
}
Note that if the refined module defines a precondition, you cannot repeat this precondition in the refining module.
Dafny version
4.5.0, 4.6.0, nightly
Code to produce this issue
Command to run and resulting output
What happened?
The example above from the manual fails in the resolver. It worked through 4.4.0.
What type of operating system are you experiencing the problem on?
Mac