Files
kotlin-fork/compiler/testData/codegen/box/functions/localFunctions/kt4783.kt
T
Mikhael Bogdanov c7c1e33655 Move local fun callee generation to pushArgumentsWithCallReceiver.
Local fun callee generation via resolvedCall.resultingDescriptor not call
2014-03-31 20:03:43 +04:00

18 lines
243 B
Kotlin

class T(val value: Int) {
}
fun local() : Int {
fun T.get(s: Int): Int {
return s * this.value
}
var t = T(11)
return t[2]
}
fun box() : String {
if (local() != 22) return "fail1 ${local()} "
return "OK"
}