Fix missing dealloc hooks on object freed by cycle collector. (#1487)

This commit is contained in:
Nikolay Igotti
2018-04-12 18:40:07 +03:00
committed by GitHub
parent 1aabf3697d
commit c5c2a080d8
4 changed files with 42 additions and 34 deletions
+1 -1
View File
@@ -50,7 +50,7 @@ fun run() {
// hashCode (directly):
if (foo.hashCode() == foo.hash().let { it.toInt() xor (it shr 32).toInt() }) {
// toString (virtually):
println(listOf(foo, pair).map { it.toString() }.min() == foo.description())
println(map.keys.map { it.toString() }.min() == foo.description())
}
println(globalString)