lean2/tests/lean/implicit7.lean
Leonardo de Moura 4ba097a141 feat(frontends/lean): use lowercase commands, replace 'endscope' and 'endnamespace' with 'end'
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2014-01-05 13:06:36 -08:00

12 lines
358 B
Text

variable f {A : Type} (a : A) {B : Type} : A -> B -> A
variable g {A B : Type} (a : A) {C : Type} : B -> C -> C
notation 100 _ ; _ ; _ : f
notation 100 _ ; _ ; _ : g
check 10 ; true ; false
check 10 ; 10 ; true
setoption pp::notation false
check 10 ; true ; false
check 10 ; 10 ; true
setoption pp::implicit true
check 10 ; true ; false
check 10 ; 10 ; true