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
@@ -43,8 +45,21 @@ public class C { } // expected-warning {{public declarations should have an avai
43
45
44
46
publicprotocolP{} // expected-warning {{public declarations should have an availability attribute when building with -require-explicit-availability}} {{1-1=@available(macOS 10.10, *)\n}}
45
47
48
+
privateprotocolPrivateProto{}
49
+
46
50
extensionS{ // expected-warning {{public declarations should have an availability attribute when building with -require-explicit-availability}} {{1-1=@available(macOS 10.10, *)\n}}
47
-
func ok(){}
51
+
publicfunc warnForPublicMembers(){} // expected-warning {{public declarations should have an availability attribute when building with -require-explicit-availability}} {{3-3=@available(macOS 10.10, *)\n }}
52
+
}
53
+
54
+
extensionS{
55
+
internalfunc dontWarnWithoutPublicMembers(){}
56
+
privatefunc dontWarnWithoutPublicMembers1(){}
57
+
}
58
+
59
+
extensionS:P{ // expected-warning {{public declarations should have an availability attribute when building with -require-explicit-availability}} {{1-1=@available(macOS 10.10, *)\n}}
60
+
}
61
+
62
+
extensionS:PrivateProto{
48
63
}
49
64
50
65
openclassOpenClass{} // expected-warning {{public declarations should have an availability attribute when building with -require-explicit-availability}} {{1-1=@available(macOS 10.10, *)\n}}
0 commit comments