Move local fun callee generation to pushArgumentsWithCallReceiver.

Local fun callee generation via resolvedCall.resultingDescriptor not call
This commit is contained in:
Mikhael Bogdanov
2014-03-26 11:21:13 +04:00
parent 94e4c2f0c1
commit c7c1e33655
3 changed files with 67 additions and 77 deletions
@@ -0,0 +1,18 @@
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"
}