summaryrefslogtreecommitdiff
path: root/Test/hofs/Underspecified.dfy
diff options
context:
space:
mode:
Diffstat (limited to 'Test/hofs/Underspecified.dfy')
-rw-r--r--Test/hofs/Underspecified.dfy10
1 files changed, 10 insertions, 0 deletions
diff --git a/Test/hofs/Underspecified.dfy b/Test/hofs/Underspecified.dfy
new file mode 100644
index 00000000..2cfd3379
--- /dev/null
+++ b/Test/hofs/Underspecified.dfy
@@ -0,0 +1,10 @@
+// RUN: %dafny /compile:0 "%s" > "%t"
+// RUN: %diff "%s.expect" "%t"
+
+method Underspecified() {
+ // all these have underspecified types, which is not ok
+ var u := _ => 0;
+ var v := (_, _) => 0;
+ var w := a => a;
+}
+