[IDE] Update SuperClassNotInitialized to relaxed restrictions on sealed classes
This commit is contained in:
+1
-1
@@ -6,4 +6,4 @@ sealed class A
|
||||
|
||||
fun test() {
|
||||
class B : A<caret>
|
||||
}
|
||||
}
|
||||
|
||||
-10
@@ -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>
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
// "Change to constructor invocation" "true"
|
||||
// ACTION: Introduce import alias
|
||||
|
||||
class My {
|
||||
sealed class A
|
||||
|
||||
class B : A<caret>
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
// "Change to constructor invocation" "true"
|
||||
// ACTION: Introduce import alias
|
||||
|
||||
class My {
|
||||
sealed class A
|
||||
|
||||
class B : A<caret>()
|
||||
}
|
||||
Reference in New Issue
Block a user