lean2/tests/lean/arith1.lean.expected.out
Leonardo de Moura e031d7bc10 Improve error messages when overloads+coercions do not work
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2013-09-02 20:05:47 -07:00

18 lines
338 B
Text

Set: pp::colors
Nat
Nat
Int
-10
5
Int
Assumed: x
Assumed: n
Assumed: m
n + m
n + x + m
Set: lean::pp::coercion
(nat_to_int n) + x + (nat_to_int m) + (nat_to_int 10)
x + (nat_to_int n) + (nat_to_int m) + (nat_to_int 10)
(nat_to_int (n + m + 10)) + x
Set: lean::pp::notation
Int::add (nat_to_int (Nat::add (Nat::add n m) 10)) x