[KLIB] Correctly restore top level property order during deserialization - Add test - Fix KT-34273

This commit is contained in:
Roman Artemev
2019-10-10 18:11:29 +03:00
committed by romanart
parent aecd08e562
commit 43e855150c
8 changed files with 55 additions and 15 deletions
@@ -0,0 +1,15 @@
// MODULE: lib
// FILE: lib.kt
// KT-34273
class Foo(val str: String)
private val foo1 = Foo("OK")
val foo2 = foo1
// MODULE: main(lib)
// FILE: main.kt
fun box(): String = foo2.str