lean2/tests/lean/sig2.lean.expected.out
Leonardo de Moura 5c991f8fbf feat(frontends/lean): parse and pretty print tuples/pairs
This commit also fixes a bug in the type checker when processing dependent pairs.

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2014-02-03 20:10:30 -08:00

24 lines
640 B
Text
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

Set: pp::colors
Set: pp::unicode
sig x : , x > 0 : Type
tuple 10, 20, ( ) :
sig2.lean:3:6: error: type mismatch in the 2nd argument of the pair
tuple 10, , ( )
Pair type:
Argument type:
Bool
sig2.lean:4:6: error: type mismatch in the 1st argument of the pair
tuple , 20, ( )
Pair type:
Argument type:
Bool
tuple , 20, (Bool ) : Bool
tuple , , (Bool Bool) : Bool Bool
tuple , , (Bool Bool) : Bool Bool
Assumed: a
Assumed: Ha
Defined: NZ
NZ : Type
tuple a, Ha, NZ : sig x : , 1 ≤ x