Files
kotlin-fork/compiler/testData/diagnostics/tests/sealed/NonPrivateConstructor.fir.kt
T
2020-03-27 16:46:59 +03:00

8 lines
248 B
Kotlin
Vendored

sealed class Sealed <!NON_PRIVATE_CONSTRUCTOR_IN_SEALED!>protected constructor(val x: Int)<!> {
object FIRST : Sealed()
<!NON_PRIVATE_CONSTRUCTOR_IN_SEALED!>public constructor(): this(42)<!>
constructor(y: Int, z: Int): this(y + z)
}