correct argument index for object that has outer this and closure arguments

#KT-1737 Fixed
This commit is contained in:
Dmitry Jemerov
2012-06-09 16:19:41 +02:00
parent a23f0018a5
commit ba76e1467c
3 changed files with 32 additions and 14 deletions
@@ -0,0 +1,13 @@
fun box(): String {
return object {
fun foo(): String {
val f = {}
object : Runnable {
public override fun run() {
f()
}
}
return "OK"
}
}.foo()
}