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
This commit is contained in:
Alexander Udalov
2014-05-21 18:49:12 +04:00
parent 9760f30c99
commit db25f568dc
7 changed files with 61 additions and 34 deletions
@@ -0,0 +1,13 @@
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