From 8f18456b7e89412855abc9993447512bdb835da9 Mon Sep 17 00:00:00 2001 From: Rustan Leino Date: Thu, 16 Jul 2015 15:37:50 -0700 Subject: Fixed bugs in the parsing of explicit type arguments. Fixed resolution bug where some type arguments were not checked to have been determined. Fixed resolution bugs where checking for equality-supporting types was missing. --- Test/dafny0/EqualityTypes.dfy.expect | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) (limited to 'Test/dafny0/EqualityTypes.dfy.expect') diff --git a/Test/dafny0/EqualityTypes.dfy.expect b/Test/dafny0/EqualityTypes.dfy.expect index 9f277582..1c02f3a0 100644 --- a/Test/dafny0/EqualityTypes.dfy.expect +++ b/Test/dafny0/EqualityTypes.dfy.expect @@ -35,4 +35,26 @@ EqualityTypes.dfy(238,24): Error: set argument type must support equality (got C EqualityTypes.dfy(239,21): Error: multiset argument type must support equality (got Co) EqualityTypes.dfy(241,8): Error: map domain type must support equality (got Co) EqualityTypes.dfy(241,14): Error: map domain type must support equality (got Co) -37 resolution/type errors detected in EqualityTypes.dfy +EqualityTypes.dfy(255,13): Error: type variable 'T' in the function call to 'UG' could not be determined +EqualityTypes.dfy(256,4): Error: type '?' to the method 'UP' is not determined +EqualityTypes.dfy(259,8): Error: the type of this local variable is underspecified +EqualityTypes.dfy(261,4): Error: type 'set' to the method 'Callee' is not determined +EqualityTypes.dfy(264,4): Error: type 'TakesParam' to the method 'Callee' is not determined +EqualityTypes.dfy(284,14): Error: type parameter 0 (T) passed to method Callee must support equality (got Dt) +EqualityTypes.dfy(285,23): Error: type parameter 0 (T) passed to method Callee must support equality (got Stream) +EqualityTypes.dfy(289,8): Error: set argument type must support equality (got Dt) +EqualityTypes.dfy(290,8): Error: iset argument type must support equality (got Dt) +EqualityTypes.dfy(291,8): Error: multiset argument type must support equality (got ArbitraryTypeArg) (perhaps try declaring type parameter 'ArbitraryTypeArg' on line 282 as 'ArbitraryTypeArg(==)', which says it can only be instantiated with a type that supports equality) +EqualityTypes.dfy(293,8): Error: map domain type must support equality (got Dt) +EqualityTypes.dfy(295,8): Error: imap domain type must support equality (got Dt) +EqualityTypes.dfy(303,8): Error: set argument type must support equality (got Stream) +EqualityTypes.dfy(309,8): Error: type parameter 0 (V) passed to type AClass must support equality (got Stream) +EqualityTypes.dfy(312,19): Error: type parameter 0 (V) passed to type AClass must support equality (got Stream) +EqualityTypes.dfy(313,19): Error: type parameter 1 (X) passed to function H must support equality (got Stream) +EqualityTypes.dfy(315,19): Error: type parameter 0 (V) passed to type AClass must support equality (got Stream) +EqualityTypes.dfy(316,19): Error: type parameter 1 (X) passed to function 'H' must support equality (got Stream) +EqualityTypes.dfy(319,31): Error: type parameter 1 (X) passed to function H must support equality (got Stream) +EqualityTypes.dfy(321,41): Error: type parameter 0 (V) passed to type AClass must support equality (got Stream) +EqualityTypes.dfy(323,28): Error: type parameter 0 (V) passed to type AClass must support equality (got Stream) +EqualityTypes.dfy(326,48): Error: type parameter 1 (B) passed to method Q must support equality (got Stream) +59 resolution/type errors detected in EqualityTypes.dfy -- cgit v1.2.3