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

JavaScriptCore subscripting methods aren't imported as Swift subscripts

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Medium
    • Resolution: Invalid
    • Component/s: Compiler
    • Labels:
    • Environment:
      • Apple Swift version 4.0.2 (swiftlang-900.0.69.1 clang-900.0.38)
      • macOS High Sierra version 10.13.1 (17B48)

      Description

      Objective-C subscripting methods in the JSContext(SubscriptSupport) and JSValue(SubscriptSupport) categories aren't imported as Swift subscripts.

      SwiftDeclConverter::importSubscript in lib/ClangImporter/ImportDecl.cpp is supposed to create a Swift subscript and mark the subscripting methods with @available(*, unavailable, message: "use subscripting").

      Documentation:

      Source Files:

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            benrimmington Ben Rimmington
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: