Open smimram opened 6 years ago
Another one:
coh comp (x : *) (y : *) (f : x -> y) (z : *) (g : y -> z) : x -> z.
coh test (x : *) (x : *) (f : x -> y) : comp f f -> f.
gives
=^.^= let comp = x -> z
=I.I= defined.
=^.^= let test = (comp f f) -> f
Fatal error: exception Common.DoubleDef("x")
Please improve error reporting. For instance,
results in
I would expect the line and character number of the error and the fact that the second
f
is expected to be of typey -> ...
but is of typex -> y
.