You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think I can solve this by replacing holes with instance metavariables during instance search, and then only unifying them at the end when the instance is found.
* Closes#3157
* During instance search, the holes are now treated like meta-variables
-- they match anything. The holes are not unified during instance
search, but on success all dangling meta-variables are replaced by fresh
holes which later need to be filled by the type-checker. In rare
situations, the type-checker might not be able to fill them even though
instance resolution succeeded (then we get the "Unable to infer the
hole" error).
For example, type-checking
gives the error:
This is a more fundamental problem with not being able to backtrack on unification in the type checker.
The text was updated successfully, but these errors were encountered: