This repository has been archived by the owner on Jun 13, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 47
Iterator problem #709
Labels
Comments
Caused by commit 9b9e92c |
Any time a substitution type leaks you can bet the problem is in the inference. I'll start looking at it once I'm done with breakfast |
This happens due to inference of generics being a problematic to manage cleanly with the current system of generics. A clean fix depends on #739 |
What do you mean? |
The thing that happens is, that we "infer" the type of the variable, as a Substitution type is treated like any old type. And because we do this before the actual type is inferred we end up using the substitution type instead. Thus the need to check whether a type contains any unsatisfied generic parameters |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I'm not sure what's going on yet.
ark build -I lib tests/iterator.ark -o a.out --loglevel=debug
The text was updated successfully, but these errors were encountered: