11 lines
251 B
Kotlin
Vendored
11 lines
251 B
Kotlin
Vendored
// "Implement sealed class" "true"
|
|
// WITH_RUNTIME
|
|
// SHOULD_BE_AVAILABLE_AFTER_EXECUTION
|
|
|
|
sealed class <caret>Base {
|
|
abstract fun foo(): Int
|
|
|
|
class BaseImpl : Base() {
|
|
override fun foo() = throw UnsupportedOperationException()
|
|
}
|
|
} |