Closed joelberkeley closed 9 months ago
Implementation resolution does not solve metas so it's not surprising that All2 Convert [A] [?y]
does not get solved as that would require solving ?y
.
ok thanks. Why in that case does it work with @{[%search]}
? With that, the only extra information I'm giving it is the length of the constraint. But I would have thought it could infer that from the structure of All2
and [A]
, before it starts resolving any Convert
s
I'm somewhat confident this is a type checker bug.
gist ... out of curiosity, why is a gist helpful?
This is a little difficult to give an example for because every variant I construct of this problem gives a different error message. Here's one ...
Steps to Reproduce
Expected Behavior
Type of
y
is inferred asBar [] B
. Andre mentioned that thelet
means it's acase
expression and that might be complicating matters, but he said that for a very different setup and I think here the types are failing to be resolved on the RHS ... if we give idris a hint on the constraint it compilesObserved Behavior