summaryrefslogtreecommitdiff
path: root/Test/dafny0/ResolutionErrors.dfy
diff options
context:
space:
mode:
authorGravatar leino <unknown>2015-09-28 13:31:26 -0700
committerGravatar leino <unknown>2015-09-28 13:31:26 -0700
commitaec9290fbd3ca9ada5a7fad4dabb4ed1ffad6a84 (patch)
treef1f8515675b958c319b94cee89d53422cf6053ff /Test/dafny0/ResolutionErrors.dfy
parent4c21d765625b35eab9f5dc4ca21f170d3f7a2f04 (diff)
Additional tests
Diffstat (limited to 'Test/dafny0/ResolutionErrors.dfy')
-rw-r--r--Test/dafny0/ResolutionErrors.dfy9
1 files changed, 9 insertions, 0 deletions
diff --git a/Test/dafny0/ResolutionErrors.dfy b/Test/dafny0/ResolutionErrors.dfy
index a4161a46..9d4d67f1 100644
--- a/Test/dafny0/ResolutionErrors.dfy
+++ b/Test/dafny0/ResolutionErrors.dfy
@@ -1610,3 +1610,12 @@ module MoreLetSuchThatExpr {
var x := var y :| y < z; y; // error: contraint depend on ghost (z)
}
}
+
+module UnderspecifiedTypedShouldBeResolvedOnlyOnce {
+ method CalcTest0(s: seq<int>) {
+ calc {
+ 2;
+ var t :| true; 2; // error: type of 't' is underspecified
+ }
+ }
+}