You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Apple Swift version 4.0.2 (swiftlang-900.0.69.1 clang-900.0.38)
macOS High Sierra version 10.13.1 (17B48)
Additional Detail from JIRA
Votes
0
Component/s
Compiler
Labels
Bug, ClangImporter
Assignee
None
Priority
Medium
md5: 815842c85ce3d91a991ccc7056652f3d
Issue 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").
The Objective-C subscript methods have to have matching types in order for Swift to turn them into a subscript. Please file a bug report against JavaScriptCore about this at https://bugreport.apple.com.
Environment
Apple Swift version 4.0.2 (swiftlang-900.0.69.1 clang-900.0.38)
macOS High Sierra version 10.13.1 (17B48)
Additional Detail from JIRA
md5: 815842c85ce3d91a991ccc7056652f3d
Issue Description:
Objective-C subscripting methods in the
JSContext(SubscriptSupport)
andJSValue(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:
JSContext
JSValue
Source Files:
JSContext.h
JSContext.mm
JSValue.h
JSValue.mm
The text was updated successfully, but these errors were encountered: