@@ -55,7 +55,7 @@ final public class FinalTopLevelClass {
5555}
5656
5757// OK: final function decls on an actor
58- @available ( macOS 11 . 0 , * )
58+ @available ( macOS 11 . 0 , iOS 14 . 0 , watchOS 7 . 0 , tvOS 14 . 0 , * )
5959public actor TopLevelActor {
6060 @available ( macOS 11 . 0 , * )
6161 @_backDeploy ( macOS 12 . 0 )
@@ -123,7 +123,7 @@ extension TopLevelStruct {}
123123@_backDeploy ( macOS 12 . 0 ) // expected-error {{'@_backDeploy' attribute cannot be applied to this declaration}}
124124protocol CannotBackDeployProtocol { }
125125
126- @available ( macOS 11 . 0 , * )
126+ @available ( macOS 11 . 0 , iOS 14 . 0 , watchOS 7 . 0 , tvOS 14 . 0 , * )
127127@_backDeploy ( macOS 12 . 0 ) // expected-error {{'@_backDeploy' attribute cannot be applied to this declaration}}
128128public actor CannotBackDeployActor { }
129129
@@ -147,11 +147,6 @@ public class TopLevelClass2 {
147147 @_backDeploy ( macOS 12 . 0 ) // expected-error {{'@_backDeploy' cannot be applied to a non-final instance method}}
148148 public func nonFinalMethod( ) { }
149149
150- @available ( macOS 11 . 0 , * )
151- @_backDeploy ( macOS 12 . 0 )
152- @objc // expected-error {{'@objc' cannot be applied to a back deployed instance method}}
153- final public func objcMethod( ) { }
154-
155150 @_backDeploy ( macOS 12 . 0 ) // expected-error {{'@_backDeploy' cannot be applied to a non-final class method}}
156151 public class func nonFinalClassMethod( ) { }
157152}
0 commit comments