Files
kotlin/compiler/testData/codegen/box/reflection/call/bound/innerClassConstructor.kt
2016-11-25 16:11:18 +03:00

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()
}