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-1Lines changed: 1 addition & 1 deletion
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' is unsupported on a instance method with a 'some' return type}}
60
+
@backDeployed(before: SwiftStdlib 5.1) // expected-warning 4 {{'@backDeployed' cannot be applied to instance method 'backdeployedOpaqueFunc()' because it has a 'some' return type}}
Copy file name to clipboardExpand all lines: test/attr/attr_backDeployed.swift
+5-2Lines changed: 5 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -251,6 +251,9 @@ 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
+
254
257
@backDeployed(before: macOS 12.0) // expected-error {{'@backDeployed' attribute cannot be applied to this declaration}}
255
258
extensionTopLevelStruct{}
256
259
@@ -266,13 +269,13 @@ public struct ConformsToTopLevelProtocol: TopLevelProtocol {
266
269
}
267
270
268
271
@available(SwiftStdlib 5.1,*)
269
-
@backDeployed(before: macOS 12.0) // expected-warning {{'@backDeployed' is unsupported on a var with a 'some' return type}}
272
+
@backDeployed(before: macOS 12.0) // expected-warning {{'@backDeployed' cannot be applied to var 'cannotBackDeployVarWithOpaqueResultType' because it has a 'some' return type}}
@backDeployed(before: macOS 12.0) // expected-warning {{'@backDeployed' is unsupported on a global function with a 'some' return type}}
278
+
@backDeployed(before: macOS 12.0) // expected-warning {{'@backDeployed' cannot be applied to global function 'cannotBackDeployFuncWithOpaqueResultType()' because it has a 'some' return type}}
0 commit comments