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)
This commit is contained in:
Alexander Udalov
2014-05-21 19:11:00 +04:00
parent db25f568dc
commit 1706bd4a00
6 changed files with 22 additions and 3 deletions
@@ -0,0 +1,12 @@
// !DIAGNOSTICS_NUMBER: 1
// !DIAGNOSTICS: CANNOT_INFER_VISIBILITY
trait T {
internal val foo: String
}
trait U {
protected val foo: String
}
trait V : T, U