Files
kotlin-fork/compiler/testData/diagnostics/tests/sealed/NonPrivateConstructor.kt
T
2021-02-12 13:36:39 +03:00

8 lines
221 B
Kotlin
Vendored

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