summaryrefslogtreecommitdiff
path: root/Test/hofs/LambdaParsefail2.dfy
diff options
context:
space:
mode:
Diffstat (limited to 'Test/hofs/LambdaParsefail2.dfy')
-rw-r--r--Test/hofs/LambdaParsefail2.dfy8
1 files changed, 8 insertions, 0 deletions
diff --git a/Test/hofs/LambdaParsefail2.dfy b/Test/hofs/LambdaParsefail2.dfy
new file mode 100644
index 00000000..148fc03c
--- /dev/null
+++ b/Test/hofs/LambdaParsefail2.dfy
@@ -0,0 +1,8 @@
+// RUN: %dafny /compile:0 /print:"%t.print" "%s" > "%t"
+// RUN: %diff "%s.expect" "%t"
+
+
+method Fail2() {
+ var g4 := (x, y : A) => (y, x : B); // RHS should fail!
+}
+