-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Overridden member type does not conform to type projection on supertype #8338
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
|
@odersky The reasoning is that
Anyway regardless of
Why does It looks like |
@Jasper-M Your reasoning was right; it took me a while to realize that. |
Uh oh!
There was an error while loading. Please reload this page.
minimized code
Compilation output
expectation
Should compile. Note that this already compiles:
From the outside
X
is a subtype ofB#X
but insidenew B { }
not.Related issue: #538
The text was updated successfully, but these errors were encountered: