We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 28bf85f + 2c92663 commit e56797cCopy full SHA for e56797c
test/stdlib/WeakMirror.swift
@@ -113,6 +113,8 @@ mirrors.test("class/NativeSwiftClassHasNativeWeakReferenceNoLeak") {
113
let mirror = Mirror(reflecting: parent)
114
let children = Array(mirror.children)
115
let extractedChild = children[0].1 as! NativeSwiftClass
116
+ // If child is destroyed, the above cast will fail.
117
+ _fixLifetime(child)
118
expectNotNil(extractedChild)
119
expectNotNil(verifier)
120
}
0 commit comments