@Kha I am using `_shadowed.<idx>` suffix for marking variables that have been shadowed. It is a bit verbose, but at least it is easy to understand understand error messages such as ``` shadow.lean:4:0: error: type mismatch h has type x._shadowed.1 = x._shadowed.1 but it is expected to have type x = x ``` It is better than the old cryptic version ``` shadow.lean:4:0: error: type mismatch h has type x = x but it is expected to have type x = x ```
16 lines
340 B
Text
16 lines
340 B
Text
shadow.lean:4:0: error: type mismatch
|
|
h
|
|
has type
|
|
x._shadowed.1=x._shadowed.1
|
|
but it is expected to have type
|
|
x=x
|
|
failed to synthesize instance
|
|
CoeT (x._shadowed.1=x._shadowed.1) _ (x=x)
|
|
shadow.lean:9:0: error: type mismatch
|
|
h
|
|
has type
|
|
x=x
|
|
but it is expected to have type
|
|
x=x
|
|
failed to synthesize instance
|
|
CoeT (x=x) _ (x=x)
|