File tree Expand file tree Collapse file tree
main/scala/viper/silver/parser
test/resources/all/issues/silver Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -833,7 +833,7 @@ case class TypeChecker(names: NameAnalyser) {
833833 permBan = Some (" forperm quantifier bodies" )
834834 check(pq.body, Bool )
835835 permBan = oldPermBan
836- checkInternal (pq.accessRes)
836+ checkTopTyped (pq.accessRes, None )
837837 pq.triggers foreach (_.exp.inner.toSeq foreach (tpe => checkTopTyped(tpe, None )))
838838 pq._typeSubstitutions = pq.body.typeSubstitutions.toList.distinct
839839 pq.typ = Bool
Original file line number Diff line number Diff line change 1+ // Any copyright is dedicated to the Public Domain.
2+ // http://creativecommons.org/publicdomain/zero/1.0/
3+
4+ domain Pointer[] {
5+ }
6+
7+ domain F {
8+ function foo(bar: F): Ref
9+ }
10+
11+ field int: Int
12+ field f: F
13+
14+ function ptrDeref(p: Pointer[]): Ref
15+
16+ method baz()
17+ //:: ExpectedOutput(typechecker.error)
18+ ensures [true, (forperm this: Pointer[] [foo(ptrDeref(this).f).int] :: false)]
You can’t perform that action at this time.
0 commit comments