chore: fix tests

This commit is contained in:
Leonardo de Moura 2020-06-15 14:39:30 -07:00
parent f5a575b847
commit bc6dba89f3
4 changed files with 7 additions and 10 deletions

View file

@ -2,7 +2,7 @@ def f (x : Nat) (g : Nat → Nat) := g x
new_frontend
#check f 1 fun x => x -- should fail
#check f 1 fun x => x -- should work
#check f 1 (fun x => x) -- should work
#check f 1 $ fun x => x -- should work
@ -10,4 +10,4 @@ syntax "foo" term:max term:max : term
macro_rules `(foo $x $y) => `(f $x $y)
#check foo 1 (fun x => x) -- should work
#check foo 1 fun x => x -- should fail?
#check foo 1 fun x => x -- should work

View file

@ -1,6 +1,5 @@
f 1 : (Nat → Nat) → Nat
appParserIssue.lean:5:11: error: expected command
f 1 (λ (x : Nat), x) : Nat
f 1 (λ (x : Nat), x) : Nat
f 1 (λ (x : Nat), x) : Nat
appParserIssue.lean:13:13: error: unexpected token at this precedence level; consider parenthesizing the term
f 1 (λ (x : Nat), x) : Nat
f 1 (λ (x : Nat), x) : Nat

View file

@ -1,6 +1,6 @@
new_frontend
#check id fun x => x -- should fail
#check id fun x => x -- should work
#check 0

View file

@ -1,8 +1,6 @@
id : ?m_1 → ?m_1
precissues.lean:3:10: error: expected command
id (λ (x : ?m_1), x) : ?m_1 → ?m_1
0 : Nat
f 1 : (Nat → Nat) → Nat
precissues.lean:9:11: error: expected command
f 1 (λ (x : Nat), x) : Nat
0 : Nat
f 1 (λ (x : Nat), x) : Nat
id : ?m_1 → ?m_1