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
The `private[this]` and `protected[this]` access modifiers are deprecated and will be phased out.
7
+
8
+
Previously, these modifier were needed
9
+
10
+
- for avoiding the generation of getters and setters
11
+
- for excluding code under a `private[this]` from variance checks. (Scala 2 also excludes `protected[this]` but this was found to be unsound and was therefore removed).
12
+
13
+
The compiler now infers for `private` members the fact that they are only accessed via `this`. Such members are treated as if they had been declared `private[this]`. `protected[this]` is dropped without a replacement.
0 commit comments