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

@objc subscript accessors don't include a type encoding

    XMLWordPrintable

    Details

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

      Description

      The ObjC runtime function method_getTypeEncoding returns a description of a method's signature, used for dynamic invocation. It looks like we just didn't implement this in the Swift compiler for subscript accessors; see irgen::emitObjCGetterDescriptorParts and irgen::emitObjCSetterDescriptorParts in GenObjC.cpp.

        Attachments

          Activity

            People

            • Assignee:
              jrose Jordan Rose
              Reporter:
              jrose Jordan Rose
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: