Files
swift-mirror/test/ClangImporter/objc_final_dynamic.swift
Jordan Rose 61798ff6ec [test] Rename test/ClangModules to test/ClangImporter. (#5618)
...to match the component in include/ and lib/. No content change.
2016-11-02 18:00:53 -07:00

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
}