Files
kotlin-fork/compiler/testData/codegen/box/jvmOverloads/innerClass.kt
T
2016-11-18 11:04:49 +01:00

16 lines
336 B
Kotlin
Vendored

// IGNORE_BACKEND: JS
// WITH_RUNTIME
class Outer {
inner class Inner @JvmOverloads constructor(val s1: String, val s2: String = "OK") {
}
}
fun box(): String {
val outer = Outer()
val c = (Outer.Inner::class.java.getConstructor(Outer::class.java, String::class.java).newInstance(outer, "shazam"))
return c.s2
}