summaryrefslogtreecommitdiff
path: root/Test/hofs/ResolveError.dfy
diff options
context:
space:
mode:
authorGravatar Dan Rosén <danr@chalmers.se>2014-08-19 11:25:59 -0700
committerGravatar Dan Rosén <danr@chalmers.se>2014-08-19 11:25:59 -0700
commit3b51d9251d78bd3de763c951102677eecd764984 (patch)
treec265e9a99caaf201c3e43f4384000ba6256158ba /Test/hofs/ResolveError.dfy
parent78e74bf9fa5ad7175cafd171427f58f556256e4a (diff)
Handle underscores in lambda bound variable lists properly
+ add a test case with lambdas that don't get their types fully specified
Diffstat (limited to 'Test/hofs/ResolveError.dfy')
-rw-r--r--Test/hofs/ResolveError.dfy6
1 files changed, 6 insertions, 0 deletions
diff --git a/Test/hofs/ResolveError.dfy b/Test/hofs/ResolveError.dfy
index 31de9424..410842b3 100644
--- a/Test/hofs/ResolveError.dfy
+++ b/Test/hofs/ResolveError.dfy
@@ -61,3 +61,9 @@ method Pli(f : A -> B) requires f != null;
var o : object;
assert f != o;
}
+
+method Underscores() {
+ var u := _ => 0;
+ var v := (_, _) => 0;
+ var w := (_, _, _) => _;
+}