JVM_IR: do not generate two nullary constructors

when the primary constructor with @JvmOverloads has default values for
all arguments.
This commit is contained in:
pyos
2019-06-24 11:04:46 +02:00
committed by max-kammerer
parent 40957ad46a
commit 6a21285aed
6 changed files with 30 additions and 2 deletions
@@ -0,0 +1,12 @@
// 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
}