@@ -40,7 +40,7 @@ CastsTests.test("type(of:) should look through extended existentials (none)") {
4040 struct C < T> : Box { var t : T }
4141 func genericErase< T> ( _ value: T ) -> Any { value }
4242 let c : any Box < Int > = C ( t: 42 )
43- if #available( macOS 13 . 0 , * ) {
43+ if #available( macOS 13 . 0 , iOS 16 . 0 , watchOS 9 . 0 , tvOS 16 . 0 , * ) {
4444 let x = genericErase ( c)
4545 expectEqual ( " C<Int> " , " \( type ( of: x) ) " )
4646 } else {
@@ -60,7 +60,7 @@ CastsTests.test("type(of:) should look through extended existentials (class)") {
6060 }
6161 func genericErase< T> ( _ value: T ) -> Any { value }
6262 let c : any OBox < Int > = C ( t: 42 )
63- if #available( macOS 13 . 0 , * ) {
63+ if #available( macOS 13 . 0 , iOS 16 . 0 , watchOS 9 . 0 , tvOS 16 . 0 , * ) {
6464 let x = genericErase ( c)
6565 expectEqual ( " C<Int> " , " \( type ( of: x) ) " )
6666 } else {
@@ -73,7 +73,7 @@ CastsTests.test("type(of:) should look through extended existentials (metatype)"
7373 struct C < T> : Box { var t : T }
7474 func genericErase< T> ( _ value: T ) -> Any { value }
7575 let t : any Box < Int > . Type = C< Int> . self
76- if #available( macOS 13 . 0 , * ) {
76+ if #available( macOS 13 . 0 , iOS 16 . 0 , watchOS 9 . 0 , tvOS 16 . 0 , * ) {
7777 let x = genericErase ( t)
7878 expectEqual ( " C<Int>.Type " , " \( type ( of: x) ) " )
7979 } else {
0 commit comments