mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
The deprecated @objc inference warnings are opt-in now, but this one was still firing by default. Stop doing that. Fixes rdar://problem/32228731.
17 lines
295 B
Swift
17 lines
295 B
Swift
// RUN: %target-swift-frontend -disable-objc-attr-requires-foundation-module -typecheck -verify %s -swift-version 3
|
|
// REQUIRES: objc_interop
|
|
|
|
import Foundation
|
|
|
|
class C : NSObject { }
|
|
|
|
extension C {
|
|
func foo() { }
|
|
}
|
|
|
|
class D : C { }
|
|
|
|
extension D {
|
|
override func foo() { } // do not warn
|
|
}
|