Extract Superclass: Drop inapplicable modifiers when converting property-parameter to ordinary parameter
#KT-15674 Fixed
This commit is contained in:
+14
@@ -0,0 +1,14 @@
|
||||
// NAME: Middle
|
||||
|
||||
open class Parent(open val bad: String) {
|
||||
open val good: String = "a"
|
||||
}
|
||||
|
||||
// SIBLING:
|
||||
class <caret>Child(
|
||||
// INFO: {checked: "true"}
|
||||
override val bad: String
|
||||
) : Parent(bad) {
|
||||
// INFO: {checked: "true"}
|
||||
override val good: String = "b"
|
||||
}
|
||||
Reference in New Issue
Block a user