Files
kotlin/compiler/testData/codegen/bytecodeListing/inlineClasses/inlineClassConstructors.kt
2018-09-07 09:31:26 +03:00

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())
}