Files
kotlin-fork/compiler/testData/diagnostics/tests/sealed/DoubleInner.kt
T

11 lines
308 B
Kotlin
Vendored

// FIR_IDENTICAL
sealed class Sealed(val x: Int) {
object First: Sealed(12)
open class NonFirst(x: Int, val y: Int): Sealed(x) {
object Second: NonFirst(34, 2)
object Third: NonFirst(56, 3)
// It's ALLOWED to inherit Sealed also here
object Fourth: Sealed(78)
}
}