lean4-htt/tests/lean/quote_error_pos.lean
Leonardo de Moura 6334ff24eb fix(frontends/lean/tactic_notation): erase position information quoted terms occurring inside `[...]
See new test for understanding the problem.

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2017-02-09 19:06:56 -08:00

17 lines
362 B
Text

open tactic
meta def apply_zero_add (a : pexpr) : tactic unit :=
to_expr `(zero_add %%a) >>= exact
example (a : nat) : 0 + a = a :=
begin
apply_zero_add `(tt), -- Error should be here
end
meta def apply_zero_add2 (a : pexpr) : tactic unit :=
`[apply zero_add %%a]
example (a : nat) : 0 + a = a :=
begin
apply_zero_add2 `(tt), -- Error should be here
end