blob: 1b35485e8de766bb0a8af974db9076cefb30cbe9 [file] [log] [blame]
// RUN: %empty-directory(%t)
// RUN: %target-swift-frontend -emit-module -o %t %s -I %S/Inputs/sr5330/ -module-name TEST
// RUN: echo 'import TEST; x' | not %target-swift-frontend -typecheck - -I %S/Inputs/sr5330/ -I %t
// REQUIRES: objc_interop
import ObjCPart
public typealias Alias = MyCollection
extension Alias: Collection {
public subscript(index: Int) -> Any {
return object(at: index)
}
public func index(after i: Int) -> Int {
return i + 1
}
public var startIndex: Int {
return 0
}
public var endIndex: Int {
return count
}
}