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
publictypealiasF=AfterDeploymentTarget // expected-error {{'AfterDeploymentTarget' is only available in macOS 11 or newer}} expected-note {{add @available attribute to enclosing type alias}}
1164
1186
}
1165
1187
1188
+
// MARK: - Class inheritance
1189
+
1190
+
// FIXME: Duplicate 'add @available' emitted when classes are nested in a decl
publicclassInheritsBetweenTargets:BetweenTargetsClass{} // expected-error {{'BetweenTargetsClass' is only available in macOS 10.14.5 or newer}} expected-note 2 {{add @available attribute to enclosing class}}
1197
+
publicclassInheritsAtDeploymentTarget:AtDeploymentTargetClass{} // expected-error {{'AtDeploymentTargetClass' is only available in macOS 10.15 or newer}} expected-note 2 {{add @available attribute to enclosing class}}
1198
+
publicclassInheritsAfterDeploymentTarget:AfterDeploymentTargetClass{} // expected-error {{'AfterDeploymentTargetClass' is only available in macOS 11 or newer}} expected-note 2 {{add @available attribute to enclosing class}}
// FIXME: Duplicate 'add @available' note is emitted
1209
+
publicclassInheritsAfterDeploymentTarget:AfterDeploymentTargetClass{} // expected-error {{'AfterDeploymentTargetClass' is only available in}} expected-note 2 {{add @available attribute to enclosing class}}
publicclassInheritsAfterDeploymentTarget:AfterDeploymentTargetClass{} // expected-error {{'AfterDeploymentTargetClass' is only available in}} expected-note 2 {{add @available attribute to enclosing class}}
0 commit comments