-
-
Notifications
You must be signed in to change notification settings - Fork 417
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Type error in parametrized interface. #1875
Comments
@ponylang/committer see: https://pony.groups.io/g/user/message/1077 |
I had a look into this, with a slightly reduced test case : class A
interface State[X, Y]
fun val bind(next: State[Y, A ref]) The unconstrained type params are actually constraint by themselves, so the constraints are The loop in reify reifies the constraint by replacing each type variable by its value, in order. It first replaced X by Y, and THEN replaced Y by A ref. So the constraint goes from It then checks
|
nice triaging @plietar |
Based on that triaging, I'm marking as |
The following setup:
doesn't typecheck. The compiler complains that
Aliasing O to some other name or replacing it with any of the other types in the bind definition makes it compile.
I'm running ponyc v0.13.1 on Arch Linux.
The text was updated successfully, but these errors were encountered: