Files
kotlin-fork/compiler/testData/diagnostics/tests/sealed/interfaces/sealedFunInterface.kt
T
2023-06-19 15:21:32 +00:00

16 lines
326 B
Kotlin
Vendored

<!UNSUPPORTED_SEALED_FUN_INTERFACE!>sealed<!> fun interface A { // error
fun foo()
}
sealed interface Base {
<!UNSUPPORTED_SEALED_FUN_INTERFACE!>sealed<!> fun interface Derived : Base { // error
fun foo()
}
}
sealed interface IBase {
fun interface IDerived : IBase { // OK
fun foo()
}
}