mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
The directory currently seems to have a mix of tests for import resolution and name lookup. Therefore split it into two directories; ImportResolution and NameLookup.
45 lines
921 B
Swift
45 lines
921 B
Swift
import Foundation
|
|
|
|
#if FAKE_UIIMAGE
|
|
class UIImage : NSObject { }
|
|
|
|
@objc
|
|
protocol ImagePresentingView {
|
|
var hidden: Bool { @objc(isHidden) get set }
|
|
}
|
|
#endif
|
|
|
|
extension UIImage : ImagePresentingView {
|
|
var hidden: Bool {
|
|
@objc(isHidden) get { return true }
|
|
set { }
|
|
}
|
|
}
|
|
|
|
open class SuperA : NSObject {
|
|
public init(foo: Int) {
|
|
super.init()
|
|
}
|
|
}
|
|
|
|
open class SuperB : NSObject {
|
|
public init(foo: String) { super.init() }
|
|
public init(bar: String) { super.init() }
|
|
public convenience init(wibble: String) { self.init(foo: wibble) }
|
|
}
|
|
|
|
open class SubB : SuperB {
|
|
public override init(bar: String) { super.init(bar: bar) }
|
|
}
|
|
|
|
// rdar://problem/19941580
|
|
public class Foo : NSObject, FooProto {
|
|
public static var staticEntityName: String = "yo"
|
|
public var entityName: String = "yo"
|
|
}
|
|
|
|
@objc public protocol FooProto {
|
|
static var staticEntityName: String { get }
|
|
var entityName: String { get }
|
|
}
|