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 {
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<!>
}