Files
kotlin-fork/compiler/testData/diagnostics/tests/sealed/DerivedTopLevel.kt
T
Stanislav Erokhin 7332032bb6 Support sealed class inheritors in the same file
#KT-11573 Fixed
2016-05-19 16:22:40 +03:00

11 lines
195 B
Kotlin
Vendored

sealed class Base
class Derived: Base() {
class Derived2: <!INVISIBLE_MEMBER, SEALED_SUPERTYPE!>Base<!>()
}
fun test() {
class Local: <!INVISIBLE_MEMBER, SEALED_SUPERTYPE!>Base<!>()
}