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

#keyPath(...) incorrectly resolves paths for Operation state properties

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Medium
    • Resolution: Unresolved
    • Component/s: None
    • Labels:
      None

      Description

      Since swift 3.1 custom implementations of isReady (and other properties I believe) using #keyPath are completely broken.

      Sending does nothing willChangeValue(forKey: #keyPath(isReady)) and didChangeValue(forKey: #keyPath(isReady)). Operation will never start.

      OperationQueue observes "isReady" and #keyPath(isReady) resolves it to "ready".

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                vkovtash Vlad Kovtash
              • Votes:
                1 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated: