Files
kotlin/compiler/testData/codegen/box/inlineClasses/defaultParameterValues/inlineClassSecondaryConstructor.kt
2019-11-19 11:00:09 +03:00

12 lines
223 B
Kotlin
Vendored

// !LANGUAGE: +InlineClasses
// IGNORE_BACKEND_FIR: JVM_IR
inline class Z(val x: Int) {
constructor(x: Long = 42L) : this(x.toInt())
}
fun box(): String {
if (Z().x != 42) throw AssertionError()
return "OK"
}