test(tests/lean): new error msg test
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
parent
ce84fe5d33
commit
66f106da8c
2 changed files with 18 additions and 0 deletions
8
tests/lean/errmsg1.lean
Normal file
8
tests/lean/errmsg1.lean
Normal file
|
@ -0,0 +1,8 @@
|
|||
Eval fun x, x
|
||||
Show fun x, x
|
||||
|
||||
Check fun x, x
|
||||
Theorem T (A : Type) (x : A) : Pi (y : A), A
|
||||
:= _.
|
||||
|
||||
Theorem T (x : _) : x = x := Refl x.
|
10
tests/lean/errmsg1.lean.expected.out
Normal file
10
tests/lean/errmsg1.lean.expected.out
Normal file
|
@ -0,0 +1,10 @@
|
|||
Set: pp::colors
|
||||
Set: pp::unicode
|
||||
λ x : ?M::0, x
|
||||
λ x : ?M::0, x
|
||||
Error (line: 4, pos: 10) invalid expression, it still contains metavariables after elaboration, metavariable: ?M::0, type:
|
||||
(Type U)
|
||||
Error (line: 6, pos: 3) failed to synthesize metavar, its type is not a proposition, metavariable: ?M::0, type:
|
||||
A : Type, x : A ⊢ A → A
|
||||
Error (line: 8, pos: 34) invalid definition, type still contains metavariables after elaboration, metavariable: ?M::3, type:
|
||||
(Type U)
|
Loading…
Reference in a new issue