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/require_explicit_availability.swift
+11Lines changed: 11 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -52,6 +52,11 @@ extension S { // expected-warning {{public declarations should have an availabil
52
52
publicfunc warnForPublicMembers(){} // expected-warning {{public declarations should have an availability attribute when building with -require-explicit-availability}} {{3-3=@available(macOS 10.10, *)\n }}
53
53
}
54
54
55
+
@available(macOS 10.1,*)
56
+
extensionS{
57
+
publicfunc okWhenTheExtensionHasAttribute(){}
58
+
}
59
+
55
60
extensionS{
56
61
internalfunc dontWarnWithoutPublicMembers(){}
57
62
privatefunc dontWarnWithoutPublicMembers1(){}
@@ -68,3 +73,9 @@ open class OpenClass { } // expected-warning {{public declarations should have a
0 commit comments