c7f3a31517
Can be used for implementing interfaces / abstract classes / sealed classes or extending open classes
16 lines
360 B
Plaintext
Vendored
16 lines
360 B
Plaintext
Vendored
// "Implement sealed class" "true"
|
|
// SHOULD_BE_AVAILABLE_AFTER_EXECUTION
|
|
|
|
sealed class Base {
|
|
abstract fun foo(): Int
|
|
|
|
class BaseImpl : Base() {
|
|
override fun foo() = throw UnsupportedOperationException()
|
|
}
|
|
|
|
class BaseImpl1 : Base() {
|
|
override fun foo(): Int {
|
|
throw UnsupportedOperationException()
|
|
}
|
|
}
|
|
} |