lean2/tests/lean/implicit2.lean
Leonardo de Moura 7726ccad28 chore(builtin): rename nat, int and real modules to Nat, Int and Real.
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2014-01-01 13:52:25 -08:00

13 lines
316 B
Text

Import Real.
Variable f {A : Type} (x y : A) : A
Check f 10 20
Check f 10
Check @f
Variable g {A : Type} (x1 x2 : A) {B : Type} (y1 y2 : B) : B
Check g 10 20 true
Check let r : Real -> Real -> Real := g 10 20
in r
Check g 10
SetOption pp::implicit true
Check let r : Real -> Real -> Real := g 10 20
in r