// "Implement sealed class" "true"
// WITH_STDLIB
// SHOULD_BE_AVAILABLE_AFTER_EXECUTION
// COMPILER_ARGUMENTS: -XXLanguage:+SealedInterfaces

sealed class <caret>Base {
    abstract fun foo(): Int

    class BaseImpl : Base() {
        override fun foo() = throw UnsupportedOperationException()
    }
}