scala-dev icon indicating copy to clipboard operation
scala-dev copied to clipboard

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

Open smarter opened this issue 6 years ago • 1 comments

In Dotty, abstract vals cannot be overriden by lazy vals for soundness reasons (https://github.com/lampepfl/dotty/pull/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 avatar Nov 17 '18 10:11 smarter

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

smarter avatar Jan 12 '19 22:01 smarter