Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # 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
Labels
dotty towards scala 3

Comments

@smarter
Copy link
Member

smarter commented Nov 17, 2018

In Dotty, abstract vals cannot be overriden by lazy vals for soundness reasons (scala/scala3#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
Copy link
Member 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 towards scala 3 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
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
dotty towards scala 3
Projects
None yet
Development

No branches or pull requests

2 participants