JVM_IR: do not generate accessors to lateinit private properties

This commit is contained in:
Georgy Bronnikov
2019-10-11 19:48:23 +03:00
parent be0516348b
commit 119a3f1306
13 changed files with 103 additions and 36 deletions
@@ -1,6 +1,5 @@
// IGNORE_BACKEND_FIR: JVM_IR
// WITH_REFLECT
// IGNORE_BACKEND: JVM_IR
// TARGET_BACKEND: JVM
// Please make sure that this test is consistent with the diagnostic test "annotationsTargetingLateinitAccessor.kt"
@@ -0,0 +1,17 @@
// IGNORE_BACKEND_FIR: JVM_IR
class SS {
private lateinit var s: String
fun setS(s: String) {
this.s = s
}
fun getS() = s
}
fun box(): String {
val ss = SS()
ss.setS("OK")
return ss.getS()
}