@@ -55,7 +55,7 @@ final public class FinalTopLevelClass {
55
55
}
56
56
57
57
// 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 , * )
59
59
public actor TopLevelActor {
60
60
@available ( macOS 11 . 0 , * )
61
61
@_backDeploy ( macOS 12 . 0 )
@@ -123,7 +123,7 @@ extension TopLevelStruct {}
123
123
@_backDeploy ( macOS 12 . 0 ) // expected-error {{'@_backDeploy' attribute cannot be applied to this declaration}}
124
124
protocol CannotBackDeployProtocol { }
125
125
126
- @available ( macOS 11 . 0 , * )
126
+ @available ( macOS 11 . 0 , iOS 14 . 0 , watchOS 7 . 0 , tvOS 14 . 0 , * )
127
127
@_backDeploy ( macOS 12 . 0 ) // expected-error {{'@_backDeploy' attribute cannot be applied to this declaration}}
128
128
public actor CannotBackDeployActor { }
129
129
@@ -147,11 +147,6 @@ public class TopLevelClass2 {
147
147
@_backDeploy ( macOS 12 . 0 ) // expected-error {{'@_backDeploy' cannot be applied to a non-final instance method}}
148
148
public func nonFinalMethod( ) { }
149
149
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
-
155
150
@_backDeploy ( macOS 12 . 0 ) // expected-error {{'@_backDeploy' cannot be applied to a non-final class method}}
156
151
public class func nonFinalClassMethod( ) { }
157
152
}
0 commit comments