Skip to content
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

A precondition for this call might not hold ... return path? #2653

Closed
MikaelMayer opened this issue Aug 4, 2022 · 0 comments · Fixed by #2654
Closed

A precondition for this call might not hold ... return path? #2653

MikaelMayer opened this issue Aug 4, 2022 · 0 comments · Fixed by #2654
Assignees

Comments

@MikaelMayer
Copy link
Member

I found this strange warning for the following code, when hovering the call Test2(0)

method Test1() {
    Test2(0);
}

method Test2(i: int)
  requires i > 0 {

}

image

It should have say "required precondition" instead of "return path".
And even better, it should actually state the required precondition rather than pointing to it.

@MikaelMayer MikaelMayer self-assigned this Aug 9, 2022
@MikaelMayer MikaelMayer transferred this issue from dafny-lang/ide-vscode Aug 29, 2022
MikaelMayer added a commit that referenced this issue Aug 29, 2022
Fixes #2653.
Also made the tests more robust by removing the need of Task.Delay
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant