lean4-htt/tests/lean/1814.lean
Leonardo de Moura 88cd294a09 feat(src/kernel/error_msgs): show aliased variables when printing error messages
closes #1814

@kenmcmil: the error messages will now list aliased variables.
For example, in your file, the new error message is:

```
invalid type ascription, term has type
  triple (ctxpre c' s_1 ∧ ctxpre c'_1 s_1) (bndngapp b s_1) (ctxpost c' s_1 ∧ ctxpost c'_1 s_1)
but is expected to have type
  triple (ctxpre c' s_1 ∧ ctxpre c'_1 s_1) (bndngapp b s_1) (ctxpost c' s_1 ∧ ctxpost c'_1 s_1)
types contain aliased name(s): c'
remark: the tactic `dedup` can be used to rename aliases
state:
...
```
2017-09-05 16:46:44 -07:00

12 lines
184 B
Text

example : ∀ (p q : Prop), p → q → p :=
begin
intros p p h1 h2,
exact h2,
end
example : ∀ (p q : Prop), p → q → p :=
begin
intros p p h1 h2,
dedup,
exact h2,
end