Redundant visibility modifier: do not report for public modifier that overrides protected setter visibility

#KT-33580 Fixed
This commit is contained in:
Toshiaki Kameyama
2019-10-17 19:40:59 +09:00
committed by Dmitry Gridin
parent e8effe6727
commit 449c406e24
10 changed files with 204 additions and 14 deletions
@@ -0,0 +1,14 @@
abstract class A {
open var attribute = "a"
protected set
}
class C : A() {
override var attribute = super.attribute
public set
}
fun main() {
val c = C()
c.attribute = "test"
}