We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f5e363d commit 9a05c9eCopy full SHA for 9a05c9e
test/attr/attr_availability.swift
@@ -1029,6 +1029,14 @@ struct UnavailableAccessors {
1029
}
1030
1031
1032
+class BaseDeprecatedInit {
1033
+ @available(*, deprecated) init(bad: Int) { }
1034
+}
1035
+
1036
+class SubInheritedDeprecatedInit: BaseDeprecatedInit { }
1037
1038
+_ = SubInheritedDeprecatedInit(bad: 0) // expected-warning {{'init(bad:)' is deprecated}}
1039
1040
// Should produce no warnings.
1041
enum SR8634_Enum: Int {
1042
case a
0 commit comments