Fix companion method access from inline class

#KT-27025
This commit is contained in:
Dmitry Petrov
2018-09-21 15:46:48 +03:00
parent 1869ed09bc
commit f9a419f940
8 changed files with 44 additions and 6 deletions
@@ -0,0 +1,12 @@
// !LANGUAGE: +InlineClasses
// IGNORE_BACKEND: JVM_IR
inline class R(private val r: Int) {
fun test() = pf()
companion object {
private fun pf() = "OK"
}
}
fun box() = R(0).test()