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
Copy file name to clipboardExpand all lines: test/Serialization/ignore-opaque-underlying-type-back-deploy.swift
+1-1
Original file line number
Diff line number
Diff line change
@@ -57,7 +57,7 @@ public struct EV : V {
57
57
@available(SwiftStdlib 5.1,*)
58
58
publicextensionV{
59
59
// CHECK: Loading underlying information for opaque type of 'backdeployedOpaqueFunc()'
60
-
@backDeployed(before: SwiftStdlib 5.1) // expected-warning 4 {{'@backDeployed' cannot be applied to instance method 'backdeployedOpaqueFunc()' because it has a 'some' return type}}
60
+
@backDeployed(before: SwiftStdlib 5.1) // expected-warning 4 {{'@backDeployed' is unsupported on a instance method with a 'some' return type}}
Copy file name to clipboardExpand all lines: test/attr/attr_backDeployed.swift
+2-5
Original file line number
Diff line number
Diff line change
@@ -251,9 +251,6 @@ public enum CannotBackDeployEnum {
251
251
@backDeployed(before: macOS 12.0) // expected-error {{'@backDeployed' must not be used on stored properties}}
252
252
publicvarcannotBackDeployTopLevelVar=79
253
253
254
-
@backDeployed(before: iOS 15.0) // OK, this can only be diagnosed when compiling for iOS
255
-
publicvarcannotBackDeployTopLevelVarOniOS=79
256
-
257
254
@backDeployed(before: macOS 12.0) // expected-error {{'@backDeployed' attribute cannot be applied to this declaration}}
258
255
extensionTopLevelStruct{}
259
256
@@ -269,13 +266,13 @@ public struct ConformsToTopLevelProtocol: TopLevelProtocol {
269
266
}
270
267
271
268
@available(SwiftStdlib 5.1,*)
272
-
@backDeployed(before: macOS 12.0) // expected-warning {{'@backDeployed' cannot be applied to var 'cannotBackDeployVarWithOpaqueResultType' because it has a 'some' return type}}
269
+
@backDeployed(before: macOS 12.0) // expected-warning {{'@backDeployed' is unsupported on a var with a 'some' return type}}
@backDeployed(before: macOS 12.0) // expected-warning {{'@backDeployed' cannot be applied to global function 'cannotBackDeployFuncWithOpaqueResultType()' because it has a 'some' return type}}
275
+
@backDeployed(before: macOS 12.0) // expected-warning {{'@backDeployed' is unsupported on a global function with a 'some' return type}}
0 commit comments