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

Allow abstract lazy vals, deprecate lazy vals overriding regular abstract vals #583

Open
smarter opened this Issue Nov 17, 2018 · 1 comment

Comments

Projects
None yet
2 participants
@smarter
Copy link

smarter commented Nov 17, 2018

In Dotty, abstract vals cannot be overriden by lazy vals for soundness reasons (lampepfl/dotty#1051). On the other hand, we allow abstract lazy vals unlike scalac. Could this limitation be lifted to ease migration ? (It's not a huge deal because one can always use an abstract def instead, but it still would be nice to have).

@smarter

This comment has been minimized.

Copy link
Author

smarter commented Jan 12, 2019

/cc @adriaanm since I think you're the resident lazy-vals-in-scalac expert :).

@adriaanm adriaanm added this to the 2.14 milestone Jan 14, 2019

@adriaanm adriaanm added the dotty label Jan 14, 2019

@adriaanm adriaanm changed the title Dotty compat: Allow abstract lazy vals, deprecate lazy vals overriding regular abstract vals Allow abstract lazy vals, deprecate lazy vals overriding regular abstract vals Jan 14, 2019

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