Redundant visibility modifier: do not report for public modifier that overrides protected setter visibility
#KT-33580 Fixed
This commit is contained in:
committed by
Dmitry Gridin
parent
e8effe6727
commit
449c406e24
Vendored
+15
@@ -0,0 +1,15 @@
|
||||
// PROBLEM: none
|
||||
|
||||
abstract class A {
|
||||
open var attribute = "a"
|
||||
protected set
|
||||
}
|
||||
|
||||
class C : A() {
|
||||
<caret>public override var attribute = super.attribute
|
||||
}
|
||||
|
||||
fun main() {
|
||||
val c = C()
|
||||
c.attribute = "test"
|
||||
}
|
||||
Reference in New Issue
Block a user