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
// OK, extensions on internal types are never visible externally.
635
+
extensionBetweenTargetsInternal{}
636
+
extensionBetweenTargetsInternal{
637
+
publicfunc publicFunc(){}
638
+
}
639
+
640
+
// expected-error@+1 {{'AfterDeploymentTarget' is only available in}} expected-note@+1 {{add @available attribute to enclosing extension}}
641
+
extensionAfterDeploymentTarget{}
642
+
643
+
// expected-error@+1 {{'AfterDeploymentTarget' is only available in}} expected-note@+1 {{add @available attribute to enclosing extension}}
644
+
extensionAfterDeploymentTarget{
645
+
internalfunc internalFunc1(){}
646
+
privatefunc privateFunc1(){}
647
+
fileprivatefunc fileprivateFunc1(){}
648
+
}
649
+
650
+
// expected-error@+1 {{'AfterDeploymentTarget' is only available in}} expected-note@+1 {{add @available attribute to enclosing extension}}
651
+
extensionAfterDeploymentTarget{
652
+
publicfunc publicFunc1(){}
653
+
}
654
+
655
+
656
+
// MARK: Protocol conformances
657
+
658
+
internalprotocolInternalProto{}
659
+
660
+
extensionNoAvailable:InternalProto{}
661
+
extensionBeforeInliningTarget:InternalProto{}
662
+
extensionAtInliningTarget:InternalProto{}
663
+
extensionBetweenTargets:InternalProto{}
664
+
extensionAtDeploymentTarget:InternalProto{}
665
+
extensionAfterDeploymentTarget:InternalProto{} // expected-error {{'AfterDeploymentTarget' is only available in}} expected-note {{add @available attribute to enclosing extension}}
666
+
667
+
publicprotocolPublicProto{}
668
+
669
+
extensionNoAvailable:PublicProto{}
670
+
extensionBeforeInliningTarget:PublicProto{}
671
+
extensionAtInliningTarget:PublicProto{}
672
+
extensionBetweenTargets:PublicProto{} // expected-error {{'BetweenTargets' is only available in}} expected-note {{add @available attribute to enclosing extension}}
673
+
extensionAtDeploymentTarget:PublicProto{} // expected-error {{'AtDeploymentTarget' is only available in}} expected-note {{add @available attribute to enclosing extension}}
674
+
extensionAfterDeploymentTarget:PublicProto{} // expected-error {{'AfterDeploymentTarget' is only available in}} expected-note {{add @available attribute to enclosing extension}}
0 commit comments