-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Member type does not conform to type projection on supertype #538
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
I can workaround this. |
Minimal example: trait A {
type X
}
class B extends A {
def x: X = ???
}
object test {
def f(): Unit = {
val b = new B
val a: A#X = b.x
}
} Compiles with
|
But dotty seems to be right, because |
@samuelgruetter thanks 👍 |
The rules for type projections in Dotty have changed and this actually compiles now, @DarkDimius you might be able to get rid of your workaround. |
That's good, and it's also compatible with the rules that I've typeset last summer: By |
Fixed bug scala#538 -- icode classes buffer was not cleared before each icode phase.
Can be reproduced here:
dotty-staging/dotty-1@82cdf60
The text was updated successfully, but these errors were encountered: