mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
18 lines
456 B
Swift
18 lines
456 B
Swift
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -emit-sil -I %S/Inputs/custom-modules %s
|
|
|
|
// REQUIRES: objc_interop
|
|
|
|
import Foundation
|
|
|
|
// Note: make sure we don't get a bogus error from nowhere,
|
|
// error: a declaration cannot be both 'final' and 'dynamic'
|
|
extension NSObject {
|
|
public static let staticIntProperty: Int = 17
|
|
}
|
|
|
|
final class MyClass : NSObject { }
|
|
|
|
extension MyClass {
|
|
public static var otherStaticIntProperty: Int = 17
|
|
}
|