mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
12 lines
344 B
Swift
12 lines
344 B
Swift
// RUN: %target-typecheck-verify-swift -parse-as-library -swift-version 3
|
|
|
|
class A {
|
|
@objc func objcVirtualFunction() { } // expected-note{{overridden declaration is here}}
|
|
}
|
|
|
|
class B : A { }
|
|
|
|
extension B {
|
|
override func objcVirtualFunction() { } // expected-warning{{cannot override a non-dynamic class declaration from an extension}}
|
|
}
|