-
Notifications
You must be signed in to change notification settings - Fork 3.1k
[WIP] Preserve singleton type when inferring override #10334
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
Conversation
I expected something like this simple retronymism from ten years ago ("Better return type inheritance for dep. method types"):
which currently reads
where (First swing was to unpack the existential in Quick test, the (correct) escape hatch at
Adding a neg test that shows the correct required type. I notice the other PR doesn't fail that compilation. |
e0b8c58
to
401a046
Compare
401a046
to
85c18a6
Compare
85c18a6
to
236ccba
Compare
Update comment on nullary/nilary distinction.
236ccba
to
52de86b
Compare
This does seem to be an inconsistent test:
|
yes, seen that before |
Fixes scala/bug#12621