ec00b9f3ea
#KT-14245 Fixed
7 lines
279 B
Kotlin
Vendored
7 lines
279 B
Kotlin
Vendored
// SHOULD_FAIL_WITH: All inheritors must be nested objects of the class itself and may not inherit from other classes or interfaces. Following problems are found: class <b><code>A</code></b>, class <b><code>B</code></b>
|
|
|
|
sealed class <caret>X {
|
|
class A : X()
|
|
}
|
|
|
|
class B : X() |