Enable additional checks in test/stdlib/Mirror.swift that used to not compile

This commit is contained in:
Anthony Latsis
2022-06-26 15:42:45 +03:00
parent 18910ae8e5
commit e487acf43b

View File

@@ -558,14 +558,12 @@ func verifyWeakUnownedReflection
expectEqual(child.label, name) expectEqual(child.label, name)
expectNotNil(child.value) expectNotNil(child.value)
// FIXME: These casts are currently broken (Dec 2019) let vp1 = child.value as? WeakUnownedTestsP1
// Once they are fixed, enable additional checks: expectNotNil(vp1)
//let vp1 = child.value as? WeakUnownedTestsP1 expectEqual(vp1!.f1(), 2)
//expectNotNil(vp1) let vp2 = child.value as? WeakUnownedTestsP2
//expectEqual(vp1!.f1(), 2) expectNotNil(vp2)
//let vp2 = child.value as? WeakUnownedTestsP2 expectEqual(vp2!.f2(), "b")
//expectNotNil(vp2)
//expectEqual(vp2!.f2(), "b")
let v = child.value as? ExpectedClass let v = child.value as? ExpectedClass
expectNotNil(v) expectNotNil(v)