Skip to content

Commit 232b538

Browse files
committed
[Tests] Fix opaque return type test to work on iOS et al.
Needed to expand the availability checks for other platforms.
1 parent cd99995 commit 232b538

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

test/TypeRoundTrip/Inputs/testcases/opaque_return_type.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,24 +3,24 @@ import RoundTrip
33
protocol P {}
44
extension Int: P {}
55

6-
@available(macOS 10.15, *)
6+
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
77
func foo() -> some P { return 0 }
88

9-
@available(macOS 10.15, *)
9+
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
1010
var prop: some P { return 0 }
1111

12-
@available(macOS 10.15, *)
12+
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
1313
func bar() -> some Sequence { return [] }
1414

1515
struct G<T> {}
1616

1717
extension G where T == Int {
18-
@available(macOS 10.15, *)
18+
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
1919
var baz: some P { return 0 }
2020
}
2121

2222
public func test() {
23-
if #available(macOS 10.15, *) {
23+
if #available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) {
2424
roundTripType(type(of:foo))
2525
roundTripType(type(of:prop))
2626
roundTripType(type(of:bar))

0 commit comments

Comments
 (0)