Files
kotlin-fork/compiler/testData/codegen/box/closures/kt3523.kt
T
Mikhael Bogdanov c325dfffd9 KT-3523: VerifyError for invoke function in inner class
KT-4106: VerifyError: Can't access outer this in a lambda in inner class' constructor
KT-3152: VerifyError when accessing from a function of object to a field of outer outer class

  #KT-3523 Fixed
  #KT-4106 Fixed
  #KT-3152 Fixed
2013-10-31 16:42:53 +04:00

19 lines
235 B
Kotlin

open class Base {
fun doSomething() {
}
}
class X(val action: () -> Unit) { }
class Foo : Base() {
inner class Bar() {
val x = X({ doSomething() })
}
}
fun box() : String {
Foo().Bar()
return "OK"
}