Minor, add regression test

This commit is contained in:
Alexander Udalov
2020-10-07 14:28:37 +02:00
parent 8ef0fdf021
commit e280416fe2
8 changed files with 51 additions and 0 deletions
@@ -0,0 +1,16 @@
import kotlin.reflect.KProperty
inline operator fun String.getValue(t:Any?, p: KProperty<*>): String = p.name + this
object ForceOutOfOrder {
fun callInline() = C.inlineFun()
}
object C {
inline fun inlineFun() = {
val O by "K"
O
}()
}
fun box(): String = ForceOutOfOrder.callInline()