Files
kotlin-fork/compiler/testData/diagnostics/tests/override/CannotInferVisibilityForPropertySetter.kt
T
Alexander Udalov db25f568dc Don't report "cannot infer visibility" on property accessors
If the diagnostic is already reported on the corresponding property, no need to
report it again for accessors
2014-05-22 19:32:10 +04:00

14 lines
198 B
Kotlin

trait T {
public var foo: Short
internal set
}
trait U {
public var foo: Short
protected set
}
trait V : T, U {
<!CANNOT_INFER_VISIBILITY!>override var foo: Short<!>
}