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

10 lines
192 B
Kotlin
Vendored

class A {
sealed class Base
}
class Derived : <!INVISIBLE_MEMBER, SEALED_SUPERTYPE!>A.Base<!>()
fun test() {
class DerivedLocal : <!INVISIBLE_MEMBER, SEALED_SUPERTYPE!>A.Base<!>()
}