Files
kotlin-fork/idea/testData/intentions/convertSealedClassToEnum/nonNestedInheritors.kt
T
2016-10-13 19:00:57 +03:00

7 lines
253 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: object <b><code>B</code></b>
sealed class <caret>X {
object A : X()
}
object B : X()