From f6f433a22fe5149eb1726c98cb0b3bfed7e9ffce Mon Sep 17 00:00:00 2001 From: Dan Rosén Date: Thu, 14 Aug 2014 17:45:39 -0700 Subject: Make arrow types not look like reference types for the resolver --- Test/hofs/ResolveError.dfy | 5 +++++ Test/hofs/ResolveError.dfy.expect | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) (limited to 'Test/hofs') diff --git a/Test/hofs/ResolveError.dfy b/Test/hofs/ResolveError.dfy index 1e389f04..31de9424 100644 --- a/Test/hofs/ResolveError.dfy +++ b/Test/hofs/ResolveError.dfy @@ -56,3 +56,8 @@ method Bla() { assert Bool; } +method Pli(f : A -> B) requires f != null; +{ + var o : object; + assert f != o; +} diff --git a/Test/hofs/ResolveError.dfy.expect b/Test/hofs/ResolveError.dfy.expect index a95d9bac..d7de049a 100644 --- a/Test/hofs/ResolveError.dfy.expect +++ b/Test/hofs/ResolveError.dfy.expect @@ -13,4 +13,6 @@ ResolveError.dfy(39,13): Error: wrong number of function arguments (got 2, expec ResolveError.dfy(46,15): Error: a reads-clause expression must denote an object or a collection of objects (instead got int) ResolveError.dfy(47,7): Error: Precondition must be boolean (got int) ResolveError.dfy(56,9): Error: condition is expected to be of type bool, but is () -> bool -15 resolution/type errors detected in ResolveError.dfy +ResolveError.dfy(59,34): Error: arguments must have the same type (got A -> B and ?) +ResolveError.dfy(62,11): Error: arguments must have the same type (got A -> B and object) +17 resolution/type errors detected in ResolveError.dfy -- cgit v1.2.3