Files
Nikolay Lunyak b7d1298f20 [FIR] Report UNSUPPORTED_SEALED_FUN_INTERFACE
^KT-59957 Fixed
2023-08-10 13:36:43 +00:00

17 lines
343 B
Kotlin
Vendored

// FIR_IDENTICAL
<!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()
}
}