[IDE] Update SuperClassNotInitialized to relaxed restrictions on sealed classes

This commit is contained in:
Dmitriy Novozhilov
2021-01-14 09:57:26 +03:00
parent 16e0c0b820
commit a9ef8bb32f
6 changed files with 26 additions and 19 deletions
@@ -6,4 +6,4 @@ sealed class A
fun test() {
class B : A<caret>
}
}
@@ -1,10 +0,0 @@
// "Change to constructor invocation" "false"
// ACTION: Introduce import alias
// ERROR: This type has a constructor, and thus must be initialized here
// ERROR: This type is sealed, so it can be inherited by only its own nested classes or objects
class My {
sealed class A
class B : A<caret>
}
@@ -0,0 +1,8 @@
// "Change to constructor invocation" "true"
// ACTION: Introduce import alias
class My {
sealed class A
class B : A<caret>
}
@@ -0,0 +1,8 @@
// "Change to constructor invocation" "true"
// ACTION: Introduce import alias
class My {
sealed class A
class B : A<caret>()
}