Fix companion field access from inline class

#KT-26858
This commit is contained in:
Dmitry Petrov
2018-09-21 14:55:19 +03:00
parent 3e4d8eba76
commit 1869ed09bc
7 changed files with 104 additions and 2 deletions
@@ -0,0 +1,12 @@
// !LANGUAGE: +InlineClasses
// IGNORE_BACKEND: JVM_IR
inline class R(private val r: Int) {
fun test() = pv
companion object {
private val pv = "OK"
}
}
fun box() = R(0).test()