Skip to content

Commit e487acf

Browse files
committed
Enable additional checks in test/stdlib/Mirror.swift that used to not compile
1 parent 18910ae commit e487acf

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

test/stdlib/Mirror.swift

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -558,14 +558,12 @@ func verifyWeakUnownedReflection
558558
expectEqual(child.label, name)
559559
expectNotNil(child.value)
560560

561-
// FIXME: These casts are currently broken (Dec 2019)
562-
// Once they are fixed, enable additional checks:
563-
//let vp1 = child.value as? WeakUnownedTestsP1
564-
//expectNotNil(vp1)
565-
//expectEqual(vp1!.f1(), 2)
566-
//let vp2 = child.value as? WeakUnownedTestsP2
567-
//expectNotNil(vp2)
568-
//expectEqual(vp2!.f2(), "b")
561+
let vp1 = child.value as? WeakUnownedTestsP1
562+
expectNotNil(vp1)
563+
expectEqual(vp1!.f1(), 2)
564+
let vp2 = child.value as? WeakUnownedTestsP2
565+
expectNotNil(vp2)
566+
expectEqual(vp2!.f2(), "b")
569567

570568
let v = child.value as? ExpectedClass
571569
expectNotNil(v)

0 commit comments

Comments
 (0)