We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 71f116c commit 8741ad4Copy full SHA for 8741ad4
test/Serialization/Recovery/implementation-only-opaque-type.swift
@@ -30,6 +30,7 @@ public struct HiddenType : Proto {
30
import BaseLib
31
@_implementationOnly import HiddenLib
32
33
+@available(SwiftStdlib 5.1, *) // for the `some` keyword.
34
public struct PublicStruct {
35
public init() {}
36
public func foo() -> some Proto {
@@ -41,5 +42,7 @@ public struct PublicStruct {
41
42
43
import Lib
44
-var s = PublicStruct()
45
-let r = s.foo()
+if #available(SwiftStdlib 5.1, *) {
46
+ let s = PublicStruct()
47
+ let r = s.foo()
48
+}
0 commit comments