Files
kotlin-fork/idea/testData/inspectionsLocal/redundantVisibilityModifier/overridePropertySetter.kt
T
2018-10-09 11:48:00 +03:00

16 lines
216 B
Kotlin
Vendored

// PROBLEM: none
abstract class Foo {
abstract var id: Int
protected set
}
class Bar : Foo() {
override var id: Int = 1
<caret>public set
}
fun test() {
val bar = Bar()
bar.id = 1
}