KT-2044 : "this" added in local variables table in bytecode for local functions also

This commit is contained in:
Natalia.Ukhorskaya
2012-06-01 13:56:11 +04:00
parent de605637e6
commit bacc76944d
4 changed files with 25 additions and 2 deletions
@@ -0,0 +1,7 @@
fun foo() {
fun bar() {
}
}
// METHOD : invoke()V
// VARIABLE : NAME=this TYPE=Lnamespace$foo$1; INDEX=0
@@ -0,0 +1,9 @@
fun foo1() {
(1..5).forEach {
println(it)
}
}
// METHOD : invoke(I)V
// VARIABLE : NAME=this TYPE=Lnamespace$foo1$1; INDEX=0
// VARIABLE : NAME=it TYPE=I INDEX=1