Skip to content

Commit

Permalink
fixed intendation, added comment, removed todo
Browse files Browse the repository at this point in the history
  • Loading branch information
Felix A. Wolf committed Oct 2, 2023
1 parent 0c28aee commit dcc383d
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ lazy val gobra = (project in file("."))
libraryDependencies += "org.apache.commons" % "commons-lang3" % "3.9", // for SystemUtils
libraryDependencies += "org.apache.commons" % "commons-text" % "1.9", // for escaping strings in parser preprocessor
libraryDependencies += "commons-codec" % "commons-codec" % "1.15", // for obtaining the hex encoding of a string
libraryDependencies += "org.antlr" % "antlr4-runtime" % "4.12.0",
libraryDependencies += "org.antlr" % "antlr4-runtime" % "4.13.0",
libraryDependencies += "org.scalaz" %% "scalaz-core" % "7.3.7", // used for EitherT

scalacOptions ++= Seq(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ trait GhostIdTyping { this: TypeInfoImpl =>
})
case c: AdtDestructor => wellDefAndType(c.decl.typ)
case _: AdtDiscriminator => LocalMessages(noMessages)
case _: MatchVariable => LocalMessages(noMessages) // TODO
case _: MatchVariable => LocalMessages(noMessages)
case _: BuiltInFPredicate | _: BuiltInMPredicate => LocalMessages(noMessages)
}

Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/regressions/issues/000589.gobra
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ decreases l
func length(l list) int {
match l {
case Empty{}:
//:: ExpectedOutput(assert_error:assertion_error)
//:: ExpectedOutput(assert_error:assertion_error)
assert false // <--- assert false here should be reachable
return 0
default:
Expand Down
3 changes: 2 additions & 1 deletion src/test/resources/regressions/issues/000655.gobra
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ func foo2() {
}

/*
// should work in the future:

ghost
pure func foo3(x pkg.Tree) bool {
return match x {
Expand All @@ -32,5 +34,4 @@ pure func foo3(x pkg.Tree) bool {
case _: false
}
}

*/

0 comments on commit dcc383d

Please sign in to comment.