Skip to content

Commit

Permalink
Add comment to explain test
Browse files Browse the repository at this point in the history
  • Loading branch information
marcoeilers committed Jun 17, 2024
1 parent f849533 commit 1e73802
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/test/resources/conditionalizePermissions/let.vpr
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,8 @@ function val(): Ref

method test()
{
// Test that the condition is not pushed inside the let expression to get e.g.
// inhale let x == (val()) in acc(x.f, ok() ? write : none)
// which would not be well-defined.
inhale ok() ==> let x == (val()) in acc(x.f)
}

0 comments on commit 1e73802

Please sign in to comment.