mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
20 lines
352 B
Swift
20 lines
352 B
Swift
// RUN: %target-run-simple-swift %s | %FileCheck %s
|
|
// REQUIRES: executable_test
|
|
// REQUIRES: objc_interop
|
|
|
|
import Foundation
|
|
|
|
class OuterClass {
|
|
class InnerClass: NSObject {}
|
|
}
|
|
|
|
extension OuterClass.InnerClass {
|
|
@objc static let propertyInExtension = "foo"
|
|
}
|
|
|
|
let x = OuterClass.InnerClass()
|
|
|
|
// CHECK: foo
|
|
print(type(of: x).propertyInExtension)
|
|
|