Files
swift-mirror/test/Serialization/Inputs/objc_method_decls.swift
Doug Gregor b27e88b70b Record Objective-C method lookup tables in Swift modules.
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
2014-11-11 00:19:03 +00:00

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) { }
}