Skip to content

Commit

Permalink
fixes a unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
ArquintL committed Mar 24, 2024
1 parent c7ae8bb commit 461517a
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@ func GhostFunc() {
p.bar2() // bar2 is not defined on a ghost pointer
}

decreases
// note that the type error refers to the receiver but is (for technical reasons) located at the beginning of the function declaration
//:: ExpectedOutput(type_error)
decreases
func (r gpointer[Foo]) bar1() int { // ghostpointer is only allowed for ghost methods
r.field = 0
return 42
Expand Down

0 comments on commit 461517a

Please sign in to comment.