mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
19 lines
623 B
Swift
19 lines
623 B
Swift
// RUN: %empty-directory(%t)
|
|
// RUN: %target-build-swift -emit-module-path %t/main4.swiftmodule -swift-version 4 -Fsystem %sdk/System/Library/PrivateFrameworks/ %s
|
|
// RUN: %target-build-swift -emit-module-path %t/main4_2.swiftmodule -swift-version 4.2 -Fsystem %sdk/System/Library/PrivateFrameworks/ %s
|
|
|
|
// REQUIRES: OS=macosx || OS=ios
|
|
|
|
import CloudKit
|
|
|
|
@available(macOS 10.10, iOS 8, *)
|
|
extension CKRecord {
|
|
@inlinable public func testMethod() -> Any? {
|
|
return self.object(forKey: "abc" as CKRecord.FieldKey)
|
|
}
|
|
|
|
@inlinable public func testSubscript() -> Any? {
|
|
return self["abc" as CKRecord.FieldKey]
|
|
}
|
|
}
|