Files
kotlin-fork/compiler/testData/codegen/box/jvmOverloads/primaryConstructor.kt
T
2020-05-08 17:30:19 +03:00

13 lines
283 B
Kotlin
Vendored

// TARGET_BACKEND: JVM
// WITH_RUNTIME
class C @kotlin.jvm.JvmOverloads constructor(s1: String, s2: String = "K") {
public val status: String = s1 + s2
}
fun box(): String {
val c = (C::class.java.getConstructor(String::class.java).newInstance("O"))
return c.status
}