KT-413 proper visibility of this$0
This commit is contained in:
@@ -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"
|
||||
}
|
||||
Reference in New Issue
Block a user