mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 00:21:47 +00:00
7 lines
212 B
Kotlin
Vendored
7 lines
212 B
Kotlin
Vendored
// !LANGUAGE: +InlineClasses
|
|
|
|
inline class Foo(val x: Int) {
|
|
constructor(x: Long) : this(x.toInt())
|
|
internal constructor(x: Int, y: Int) : this(x + y)
|
|
private constructor(x: Short) : this(x.toInt())
|
|
} |