Files
kotlin-fork/compiler/testData/codegen/box/jvmOverloads/primaryConstructorWithAllDefaults.kt
T
2019-11-19 11:00:09 +03:00

14 lines
298 B
Kotlin
Vendored

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