Files
kotlin-fork/compiler/testData/codegen/box/localClasses/kt10835.kt
T
2020-12-22 16:07:06 +03:00

16 lines
275 B
Kotlin
Vendored

// IGNORE_BACKEND: JVM
class X(val x: String) {
open inner class Y {
fun foo() = x
}
fun foo(s: String): String {
with(X(s+x)) {
val obj = object : Y() {}
return obj.foo()
}
}
}
fun box() =
X("K").foo("O")