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}}
1191
1216
}
1192
1217
1218
+
// MARK: - Class inheritance
1219
+
1220
+
// 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}}
1227
+
publicclassInheritsAtDeploymentTarget:AtDeploymentTargetClass{} // expected-error {{'AtDeploymentTargetClass' is only available in macOS 10.15 or newer}} expected-note 2 {{add @available attribute to enclosing class}}
1228
+
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
1239
+
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