-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Flaw in type parameter encoding? #741
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
Comments
smarter
added a commit
to smarter/dotty
that referenced
this issue
Oct 1, 2015
We need to use `baseTypeWithArgs` to replace `Bar` by its supertype `Foo` in the type `Bar[Int]`. Fixes scala#741.
smarter
added a commit
to smarter/dotty
that referenced
this issue
Oct 2, 2015
We need to use `baseTypeWithArgs` to replace `Bar` by its supertype `Foo` in the type `Bar[Int]`. Fixes scala#741.
smarter
added a commit
to smarter/dotty
that referenced
this issue
Oct 2, 2015
smarter
added a commit
to smarter/dotty
that referenced
this issue
Oct 2, 2015
smarter
added a commit
to smarter/dotty
that referenced
this issue
Oct 2, 2015
smarter
added a commit
to smarter/dotty
that referenced
this issue
Oct 2, 2015
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The following:
Fails with:
The issue is that in
TypeAssigner#avoid
we replace:by (this is not the best solution, see #711, but that's a separate issue):
But at this point we cannot infer that
Foo$$A = Int
because these refinements are not prefixed byRefinedThis
so they're independent. It seems that we should either:o.Bar { Outer$Bar$$B = Int }
to its "real" parent type which isFoo { Foo$$A = Int }
.@odersky : what do you think?
The text was updated successfully, but these errors were encountered: