Skip to content

Commit

Permalink
Update failing cases, add parsing edge case
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasAlaif committed Jul 19, 2023
1 parent a5d1638 commit 95e6bf0
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
7 changes: 3 additions & 4 deletions src/test/resources/all/issues/silver/0027.vpr
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// Any copyright is dedicated to the Public Domain.
// http://creativecommons.org/publicdomain/zero/1.0/

//:: ExpectedOutput(typechecker.error)
// Any copyright is dedicated to the Public Domain.
// http://creativecommons.org/publicdomain/zero/1.0/

field f: Int

//:: ExpectedOutput(typechecker.error)
Expand Down
8 changes: 8 additions & 0 deletions src/test/resources/all/parsing/typed_call_ambig.vpr
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
domain huh {
function myfun(b: Bool): Bool
}

method m()
{
assert (myfun(forall i: Int :: i > 0 || i <= 0))
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,12 @@ method test02() {
assert (let y == (0) in true) && y == 0
}

//:: ExpectedOutput(typechecker.error)
method test03(y: Int) {
//:: ExpectedOutput(typechecker.error)
assert let y == (0) in true
}

//:: ExpectedOutput(typechecker.error)
method test03() {
//:: ExpectedOutput(typechecker.error)
assert let y == (0) in let y == (true) in true
Expand Down

0 comments on commit 95e6bf0

Please sign in to comment.