mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 15:53:37 +00:00
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"
|
|
} |