Files
kotlin-fork/compiler/testData/diagnostics/tests/override/CannotInferVisibilityForProperty.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
203 B
Kotlin

trait T {
internal var foo: Long
}
trait U {
protected var foo: Long
}
trait V : T, U {
<!CANNOT_INFER_VISIBILITY!>override var foo: Long<!>
}
trait <!CANNOT_INFER_VISIBILITY!>W<!> : T, U