Files
kotlin-fork/compiler/testData/diagnostics/tests/sealed/NonPrivateConstructor.kt
T
2016-05-23 13:08:57 +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)
}