You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: test/attr/attr_objc_override.swift
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -29,11 +29,11 @@ class B : A {
29
29
get{returnself} // expected-error{{subscript getter with Objective-C selector 'objectForKeyedSubscript:' conflicts with subscript getter from superclass 'A'}}
30
30
}
31
31
32
-
overridefunc foo(){} // expected-error{{overriding non-@objc declarations from extensions is not supported}}
32
+
overridefunc foo(){} // expected-error{{non-@objc instance method 'foo()' is declared in extension of 'A' and cannot be overriden}}
33
33
34
-
overridefunc wibble(_:SwiftStruct){} // expected-error{{overriding declarations in extensions is not supported}}
34
+
overridefunc wibble(_:SwiftStruct){} // expected-error{{instance method 'wibble' is declared in extension of 'A' and cannot be overriden}}
35
35
}
36
36
37
37
extensionB{
38
-
overridefunc bar(){} // expected-error{{overriding non-@objc declarations from extensions is not supported}}
38
+
overridefunc bar(){} // expected-error{{non-@objc instance method 'bar()' declared in 'A' cannot be overriden from extension}}
0 commit comments