Files
swift-mirror/test/attr/attr_objc_swift3_deprecated_default.swift
Doug Gregor bf824bba71 [Type checker] Don't warn about implicit @objc due to overrides by default.
The deprecated @objc inference warnings are opt-in now, but this one
was still firing by default. Stop doing that. Fixes rdar://problem/32228731.
2017-05-18 22:09:29 -07:00

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
}