Files
kotlin-fork/idea/testData/diagnosticMessage/cannotInferVisibility.kt
T
Alexander Udalov 1706bd4a00 Render the descriptor in "cannot infer visibility" message
Otherwise it's unclear what member is problematic if it's a fake override
(because the diagnostic in that case is reported on the whole class)
2014-05-22 19:32:10 +04:00

13 lines
168 B
Kotlin

// !DIAGNOSTICS_NUMBER: 1
// !DIAGNOSTICS: CANNOT_INFER_VISIBILITY
trait T {
internal val foo: String
}
trait U {
protected val foo: String
}
trait V : T, U