mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Include a mapping from Objective-C selectors to the @objc methods that
produce Objective-c methods with those selectors. Use this to lazily
populate the Objective-C method lookup tables in each class. This makes
@objc override checking work across Swift modules, which is part of
rdar://problem/18391046.
Note that we use a single, unified selector table, both because it is
simpler and because it makes global queries ("is there any method with
the given selector?") easier.
Swift SVN r23214
9 lines
230 B
Swift
9 lines
230 B
Swift
public class A {
|
|
public init() { }
|
|
|
|
@objc(a1) public func f1() { }
|
|
@objc(initWithInt:) public func f2(int: Int) { }
|
|
@objc(setFoo:) public func f3(i: Int) { }
|
|
@objc(objectAtIndexedSubscript:) public func f4(i: Int) { }
|
|
}
|