Extract Superclass: Drop inapplicable modifiers when converting property-parameter to ordinary parameter

#KT-15674 Fixed
This commit is contained in:
Alexey Sedunov
2017-01-12 18:53:15 +03:00
parent ea7bf6b7c1
commit a9645e1ae9
6 changed files with 42 additions and 2 deletions
@@ -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"
}