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: ... ```
20 lines
373 B
Text
20 lines
373 B
Text
1814.lean:4:8: error: invalid type ascription, term has type
|
|
p
|
|
but is expected to have type
|
|
p
|
|
types contain aliased name(s): p
|
|
remark: the tactic `dedup` can be used to rename aliases
|
|
state:
|
|
p p : Prop,
|
|
h1 : p,
|
|
h2 : p
|
|
⊢ p
|
|
1814.lean:11:8: error: invalid type ascription, term has type
|
|
p_1
|
|
but is expected to have type
|
|
p
|
|
state:
|
|
p p_1 : Prop,
|
|
h1 : p,
|
|
h2 : p_1
|
|
⊢ p
|