mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Enable additional checks in test/stdlib/Mirror.swift that used to not compile
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user