Files
kotlin-fork/compiler/testData/codegen/box/inlineClasses/defaultParameterValues/inlineClassSecondaryConstructor.kt
T

12 lines
190 B
Kotlin
Vendored

// WITH_RUNTIME
@JvmInline
value class Z(val x: Int) {
constructor(x: Long = 42L) : this(x.toInt())
}
fun box(): String {
if (Z().x != 42) throw AssertionError()
return "OK"
}