Fix outer class mapping for closures in inline class
#KT-27030 #KT-27033
This commit is contained in:
+11
@@ -0,0 +1,11 @@
|
||||
// !LANGUAGE: +InlineClasses
|
||||
// IGNORE_BACKEND: JVM_IR
|
||||
|
||||
inline class R(private val r: Int) {
|
||||
fun test() =
|
||||
object {
|
||||
override fun toString() = "OK"
|
||||
}.toString()
|
||||
}
|
||||
|
||||
fun box() = R(0).test()
|
||||
Reference in New Issue
Block a user