You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Private has different meanings when at the top-level vs nested. Top-level effectively means "fileprivate" whereas nested means "private within this scope".
Repro:
privatefinalclass A {private(set)varvalue:Int
^ warning: Redundant Set Access Control Rule Violation: Property setter access level shouldn't be explicit if it's the same as the variable access
}
In this case, the code is acceptable and we shouldn't require fileprivate final class A.
New Issue Checklist
Bug Report
Private has different meanings when at the top-level vs nested. Top-level effectively means "fileprivate" whereas nested means "private within this scope".
Repro:
In this case, the code is acceptable and we shouldn't require
fileprivate final class A
.This rule was added in #2036.
The text was updated successfully, but these errors were encountered: