lean4-htt/tests/lean/unknownTactic.lean.expected.out
Leonardo de Moura 0a56057db1 feat: better error message for "unknown" tactic
@Kha The hack I posted at Zulip didn't really work
```
macro x:ident : tactic => throw $ Lean.Macro.Exception.error x s!"unknown tactic '{x.getId}'"
```

For example, we would still get a weird error message at
```
theorem ex3 (x : Nat) : x = x → x = x :=
  have x = x by foo (aaa bbb) -- The error would be at `bbb`
  fun h => h
```
There were other minor issues that could be fixed, but this one was bad.
2020-10-30 14:58:17 -07:00

5 lines
149 B
Text

unknownTactic.lean:3:3: error: unknown tactic
---
unknownTactic.lean:8:17: error: unknown tactic
---
unknownTactic.lean:14:17: error: unknown tactic