lean4-htt/tests/lean/shadow.lean.expected.out
Leonardo de Moura 19a7927f10 feat: sanitizeNames
@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
```
2020-09-15 16:28:50 -07:00

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)