From 4d1b9448035a3b7b1fd77fff132dafcfd1941d27 Mon Sep 17 00:00:00 2001 From: Tim Kientzle Date: Wed, 10 Apr 2024 16:04:10 -0700 Subject: [PATCH] Just skip tests on unsupported versions --- test/Casting/TypeOf_ExtendedExistential.swift | 6 ------ 1 file changed, 6 deletions(-) diff --git a/test/Casting/TypeOf_ExtendedExistential.swift b/test/Casting/TypeOf_ExtendedExistential.swift index 4923c0cbfa1..1a5aaae65ca 100644 --- a/test/Casting/TypeOf_ExtendedExistential.swift +++ b/test/Casting/TypeOf_ExtendedExistential.swift @@ -43,8 +43,6 @@ CastsTests.test("type(of:) should look through extended existentials (none)") { if #available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *) { let x = genericErase(c) expectEqual("C", "\(type(of:x))") - } else { - expectEqual(0, 1) } } @@ -63,8 +61,6 @@ CastsTests.test("type(of:) should look through extended existentials (class)") { if #available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *) { let x = genericErase(c) expectEqual("C", "\(type(of:x))") - } else { - expectEqual(0, 1) } } @@ -76,8 +72,6 @@ CastsTests.test("type(of:) should look through extended existentials (metatype)" if #available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *) { let x = genericErase(t) expectEqual("C.Type", "\(type(of:x))") - } else { - expectEqual(0, 1) } }