Uploaded image for project: 'Swift'
  1. Swift
  2. SR-7083

lazy properties can't have observers

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Medium
    • Resolution: Done
    • Component/s: Compiler
    • Labels:

      Description

      The compiler won't let you put didSet/willSet observers on a lazy property. Since lazy properties are supposed to look and feel like stored properties, they should be able to have observers.

        Attachments

          Activity

            People

            Assignee:
            suyashsrijan Suyash Srijan
            Reporter:
            jckarter Joe Groff
            Votes:
            4 Vote for this issue
            Watchers:
            13 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: