lean2/tests/lean/implicit2.lean
Leonardo de Moura 78ec4b152b feat(frontends/lean): relax restricitions on parsing applications of functions containing implicit arguments
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2013-12-10 09:48:24 -08:00

12 lines
306 B
Text

Variable f {A : Type} (x y : A) : A
Check f 10 20
Check f 10
Check f::explicit
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
Set pp::implicit true
Check let r : Real -> Real -> Real := g 10 20
in r