KT-413 proper visibility of this$0

This commit is contained in:
Alex Tkachman
2012-02-24 08:26:27 +02:00
parent f89b0c3193
commit 80e728b6f6
4 changed files with 32 additions and 2 deletions
@@ -0,0 +1,26 @@
package t
trait I{
fun f()
}
class Test{
fun foo(){
val i : I = object : I {
override fun f() {
fun local(){
bar()
}
local()
}
}
i.f()
}
fun bar(){}
}
fun box() : String {
Test().foo()
return "OK"
}