Skip to content

Port RefChecks fixes from scalac related to linearization #7551

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

Closed
smarter opened this issue Nov 13, 2019 · 1 comment · Fixed by #12982
Closed

Port RefChecks fixes from scalac related to linearization #7551

smarter opened this issue Nov 13, 2019 · 1 comment · Fixed by #12982

Comments

@smarter
Copy link
Member

smarter commented Nov 13, 2019

See scala/scala#7439. For some reason, the test in the original issue (scala/bug#11136) does not crash dotty anymore (see #5094), but we haven't ported any of the changes in scala/scala#7439 yet, so we're probably still accepting some broken things.

@smarter smarter changed the title Port RefChecks fixes from scalac Port RefChecks fixes from scalac related to linearization Nov 13, 2019
@smarter
Copy link
Member Author

smarter commented Mar 17, 2021

To be precise, the pos testcase added in #7549 should not compile (as in Scala 2) as it means that a final def is overridden by a non-final def, see also discussion in #11741

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants