mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
This is again just a temporary workaround until getInterfaceType() can kick off a request.
28 lines
442 B
Swift
28 lines
442 B
Swift
class EmptyBase {}
|
|
class Subclass : EmptyBase {
|
|
class var classProp: String { return "abc" }
|
|
}
|
|
|
|
class SillySequence : Sequence, IteratorProtocol {
|
|
typealias Element = Int
|
|
|
|
var storedProperty: Int = 0
|
|
|
|
func makeIterator() -> SillySequence {
|
|
return self
|
|
}
|
|
|
|
func next() -> Int? {
|
|
return nil
|
|
}
|
|
}
|
|
|
|
class Holder {
|
|
func getSillySequence() -> SillySequence {
|
|
return SillySequence()
|
|
}
|
|
}
|
|
|
|
class Base {
|
|
func method() {}
|
|
} |