mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-16 08:31:35 +00:00
16 lines
313 B
Kotlin
Vendored
16 lines
313 B
Kotlin
Vendored
// TODO: investigate should it be ran for JS or not
|
|
// IGNORE_BACKEND: JS
|
|
|
|
// WITH_REFLECT
|
|
|
|
class Outer(val x: String) {
|
|
inner class Inner(val y: String) {
|
|
fun foo() = x + y
|
|
}
|
|
}
|
|
|
|
fun box(): String {
|
|
val innerCtor = Outer("O")::Inner
|
|
val inner = innerCtor.call("K")
|
|
return inner.foo()
|
|
} |