3f287d344e
Restriction for sealed inheritors was relaxed. Instead of being nested class members now they can be the members of the same module and package.
14 lines
294 B
Plaintext
Vendored
14 lines
294 B
Plaintext
Vendored
// "Implement sealed class" "true"
|
|
// WITH_RUNTIME
|
|
// SHOULD_BE_AVAILABLE_AFTER_EXECUTION
|
|
// COMPILER_ARGUMENTS: -XXLanguage:+SealedInterfaces
|
|
|
|
sealed class Base {
|
|
abstract fun foo(): Int
|
|
}
|
|
|
|
class BaseImpl : Base() {
|
|
override fun foo(): Int {
|
|
TODO("Not yet implemented")
|
|
}
|
|
} |