f68ce4b35b
#KT-26908 #KT-26554 Move default parameter value tests to separate directory
12 lines
219 B
Kotlin
Vendored
12 lines
219 B
Kotlin
Vendored
// !LANGUAGE: +InlineClasses
|
|
// IGNORE_BACKEND: 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"
|
|
} |