Skip to content

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

Open
@smarter

Description

@smarter
Member

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).

Activity

smarter

smarter commented on Jan 12, 2019

@smarter
MemberAuthor

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

added this to the 2.14 milestone on Jan 14, 2019
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[/+] on Jan 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    dottytowards scala 3

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @smarter@adriaanm

        Issue actions

          Allow abstract lazy vals, deprecate lazy vals overriding regular abstract vals · Issue #583 · scala/scala-dev