diff options
author | qunyanm <unknown> | 2016-02-09 14:24:59 -0800 |
---|---|---|
committer | qunyanm <unknown> | 2016-02-09 14:24:59 -0800 |
commit | 8ee1a3fdb07906ee3858eb602c1823f9c1343b72 (patch) | |
tree | c703971140a5dc72a1c418d704616ed9d4316449 /Test | |
parent | 0d08ec191bf3f15ae89dc243877d9295b3004bc6 (diff) |
Fix issue 131. Instead of crashing, report an error when an undefined member of
a class is referenced.
Diffstat (limited to 'Test')
-rw-r--r-- | Test/dafny4/Bug131.dfy | 11 | ||||
-rw-r--r-- | Test/dafny4/Bug131.dfy.expect | 2 |
2 files changed, 13 insertions, 0 deletions
diff --git a/Test/dafny4/Bug131.dfy b/Test/dafny4/Bug131.dfy new file mode 100644 index 00000000..5d01cf59 --- /dev/null +++ b/Test/dafny4/Bug131.dfy @@ -0,0 +1,11 @@ +// RUN: %dafny /compile:0 "%s" > "%t"
+// RUN: %diff "%s.expect" "%t"
+
+class Cell {
+ method Test(c: Cell) {
+ assert c.F();
+ }
+}
+
+predicate F()
+
diff --git a/Test/dafny4/Bug131.dfy.expect b/Test/dafny4/Bug131.dfy.expect new file mode 100644 index 00000000..b4c98652 --- /dev/null +++ b/Test/dafny4/Bug131.dfy.expect @@ -0,0 +1,2 @@ +Bug131.dfy(6,13): Error: member F does not exist in class Cell
+1 resolution/type errors detected in Bug131.dfy
|