File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ class Mixin extends MiniPhaseTransform with SymTransformer { thisTransform =>
72
72
73
73
override def transformSym (sym : SymDenotation )(implicit ctx : Context ): SymDenotation =
74
74
if (sym.is(Accessor , butNot = Deferred ) && sym.owner.is(Trait ))
75
- sym.copySymDenotation(initFlags = sym.flags | Deferred )
75
+ sym.copySymDenotation(initFlags = sym.flags | Deferred ).ensureNotPrivate
76
76
else
77
77
sym
78
78
Original file line number Diff line number Diff line change @@ -741,11 +741,9 @@ class RefChecks extends MiniPhase with SymTransformer { thisTransformer =>
741
741
*/
742
742
override def transformSym (d : SymDenotation )(implicit ctx : Context ) = {
743
743
def mustBePublicInValueClass = d.isPrimaryConstructor || d.is(ParamAccessor )
744
- def mustBePublicInTrait = ! d.is(Method ) || d.isSetter || d.is(ParamAccessor )
745
744
def mustBePublic = {
746
745
val cls = d.owner
747
- (isDerivedValueClass(cls) && mustBePublicInValueClass ||
748
- cls.is(Trait ) && mustBePublicInTrait)
746
+ (isDerivedValueClass(cls) && mustBePublicInValueClass
749
747
}
750
748
if ((d is PrivateTerm ) && mustBePublic) notPrivate(d) else d
751
749
}
You can’t perform that action at this time.
0 commit comments