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 cd99995 commit 232b538Copy full SHA for 232b538
test/TypeRoundTrip/Inputs/testcases/opaque_return_type.swift
@@ -3,24 +3,24 @@ import RoundTrip
3
protocol P {}
4
extension Int: P {}
5
6
-@available(macOS 10.15, *)
+@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
7
func foo() -> some P { return 0 }
8
9
10
var prop: some P { return 0 }
11
12
13
func bar() -> some Sequence { return [] }
14
15
struct G<T> {}
16
17
extension G where T == Int {
18
- @available(macOS 10.15, *)
+ @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
19
var baz: some P { return 0 }
20
}
21
22
public func test() {
23
- if #available(macOS 10.15, *) {
+ if #available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) {
24
roundTripType(type(of:foo))
25
roundTripType(type(of:prop))
26
roundTripType(type(of:bar))
0 commit comments