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)
expectNotNil(child.value)
// FIXME: These casts are currently broken (Dec 2019)
// Once they are fixed, enable additional checks:
//let vp1 = child.value as? WeakUnownedTestsP1
//expectNotNil(vp1)
//expectEqual(vp1!.f1(), 2)
//let vp2 = child.value as? WeakUnownedTestsP2
//expectNotNil(vp2)
//expectEqual(vp2!.f2(), "b")
let vp1 = child.value as? WeakUnownedTestsP1
expectNotNil(vp1)
expectEqual(vp1!.f1(), 2)
let vp2 = child.value as? WeakUnownedTestsP2
expectNotNil(vp2)
expectEqual(vp2!.f2(), "b")
let v = child.value as? ExpectedClass
expectNotNil(v)