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

Objective-C property description includes ivar name even when getters and setters are non-trivial

    XMLWordPrintable

    Details

      Description

      On the PR for SR-9541, Jordan noted that Swift will generate property metadata that includes an ivar name even when the Objective-C accessors that Swift generates are non-trivial.

      For instance, the property metadata generated for `@objc var foo: String` includes the ivar name `foo`, even though that ivar is a `String` on the Swift side, but is accessed as an `NSString` on the Objective-C side. Directly accessing the ivar from the Objective-C side with the property type instead of the ivar type would fail, so there is a point to make that advertising the ivar as backing the property is improper.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              fclout FĂ©lix Cloutier
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: