K2: fix exception in deserializer for external setter #KT-53031 Fixed

This commit is contained in:
Mikhail Glukhikh
2022-07-12 17:01:14 +02:00
committed by Space
parent 1336ec6a0b
commit 70e15b281c
4 changed files with 31 additions and 4 deletions
@@ -0,0 +1,18 @@
// TARGET_BACKEND: JVM_IR
// MODULE: m1
// FILE: f1.kt
object O {
var prop: String
external get
external set
}
// MODULE: m2(m1)
// FILE: f2.kt
fun box(): String {
O.hashCode() // Necessary to deserialize O
return "OK"
}