test: implicit lambdas + notation

This commit is contained in:
Leonardo de Moura 2020-03-26 12:31:04 -07:00
parent e682c1c88f
commit 2b3bdbe0cf

View file

@ -301,3 +301,18 @@ def tst1 : {α : Type} → αα :=
@(fn α a => a)
#check @tst1
syntax ident "==>" term : term
macro_rules
| `($x:ident ==> $b) => `(fn $x => $b)
#check x ==> x+1
def tst2 : {α : Type} → αα :=
@(α ==> a ==> a)
#check @tst2
def tst3 : {α : Type} → {β : Type} → α → β → α × β :=
@(α ==> @(β ==> a ==> b ==> (a, b)))