mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
11 lines
193 B
Kotlin
Vendored
11 lines
193 B
Kotlin
Vendored
// !LANGUAGE: +InlineClasses
|
|
|
|
inline class Z(val x: Int) {
|
|
constructor(x: Long = 42L) : this(x.toInt())
|
|
}
|
|
|
|
fun box(): String {
|
|
if (Z().x != 42) throw AssertionError()
|
|
|
|
return "OK"
|
|
} |