Intentions: Implement "Convert sealed class to enum" intention
#KT-14245 Fixed
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
// 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()
|
||||
Reference in New Issue
Block a user