Open nicolabotta opened 7 years ago
Thanks, it seems like it is missing some disambiguation when trying to typecheck LT
.
I think a with
-clause is missing, so there should probably be an error regarding that.
@ahmadsalim The code is crap, of course. The internal error disappears as soon as one reestablishes proper indentation:
> foo : {x, y : Double} -> EQ = compare x y -> So (x == y)
> foo {x} {y} p | LT = ?kika
yields
- + Errors (1)
`-- ./Double/open_issues/unelaboratable.lidr line 1 col 6:
When checking type of Main.foo:
No such variable So
as one would expect. Notice, however, that in the indented version the type checker does a lot of work before exiting with the internal error reported in my original post. I do not think that this issue is relevant per se, just thought that the internal error could perhaps point at something that could be interesting in relation with more relevant issues.
@nicolabotta Yeah, thanks for reporting the error.
The program
yields
which I diligently report.