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/ClangImporter/objc_override.swift
+14Lines changed: 14 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -83,6 +83,20 @@ class SomeCellSub5 : SomeCell {
83
83
func otherIsEnabled(){} // should not conflict
84
84
}
85
85
86
+
classSomeCellSub6:SomeCell{
87
+
@available(*, unavailable)
88
+
@objcoverrideinit(string:String){
89
+
super.init(string: string)
90
+
}
91
+
}
92
+
93
+
classSomeCellSub7:SomeCell{
94
+
@available(swift, obsoleted:4)
95
+
@objcoverrideinit(string:String){
96
+
super.init(string: string)
97
+
}
98
+
}
99
+
86
100
classFailSub:FailBase{
87
101
overrideinit(value:Int){try! super.init(value: value)} // expected-error {{overriding a throwing '@objc' initializer with a non-throwing initializer is not supported}}
88
102
overrideclassfunc processValue(){} // expected-error {{overriding a throwing '@objc' method with a non-throwing method is not supported}}
Copy file name to clipboardExpand all lines: test/attr/attr_dynamic_member_lookup.swift
+14-3Lines changed: 14 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -253,9 +253,8 @@ public struct Inaccessible1 {
253
253
254
254
@dynamicMemberLookup
255
255
publicstructInaccessible2{
256
-
// expected-non-resilient-warning @+3 {{'@dynamicMemberLookup' requires 'subscript(dynamicMember:)' to be as accessible as its enclosing type; this will be an error in a future Swift language mode}}{{21-29=public}}
257
-
// expected-resilient-error @+2 {{'@dynamicMemberLookup' requires 'subscript(dynamicMember:)' to be as accessible as its enclosing type}}{{21-29=public}}
258
-
// expected-error @+1 {{'@usableFromInline' attribute can only be applied to internal or package declarations, but subscript 'subscript(dynamicMember:)' is public}}
256
+
// expected-non-resilient-warning @+2 {{'@dynamicMemberLookup' requires 'subscript(dynamicMember:)' to be as accessible as its enclosing type; this will be an error in a future Swift language mode}}{{21-29=public}}
257
+
// expected-resilient-error @+1 {{'@dynamicMemberLookup' requires 'subscript(dynamicMember:)' to be as accessible as its enclosing type}}{{21-29=public}}
// expected-non-resilient-warning @+2 {{'@dynamicMemberLookup' requires 'subscript(dynamicMember:)' to be as accessible as its enclosing type; this will be an error in a future Swift language mode}}{{3-11=public}}
287
+
// expected-resilient-error @+1 {{'@dynamicMemberLookup' requires 'subscript(dynamicMember:)' to be as accessible as its enclosing type}}{{3-11=public}}
0 commit comments