"Convert property to function" intention should warn about the property overloads at child class constructor

#KT-29764 Fixed
This commit is contained in:
Dmitry Gridin
2019-04-02 18:11:41 +07:00
parent c8ea62a0d9
commit 3ca1c7b55d
6 changed files with 37 additions and 4 deletions
@@ -0,0 +1,8 @@
// SHOULD_FAIL_WITH: Property overloaded in child class constructor
package test
open class Parent() {
open val <caret>o: String = ""
}
class Child(override val o: String) : Parent()