File tree 2 files changed +1
-2
lines changed 2 files changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ object tpd extends Trees.Instance[Type] with TypedTreeInfo {
21
21
private def ta (implicit ctx : Context ) = ctx.typeAssigner
22
22
23
23
def Modifiers (sym : Symbol )(implicit ctx : Context ): Modifiers = Modifiers (
24
- sym.flags & ModifierFlags ,
24
+ sym.flags & ( if (sym.isType) ModifierFlags | VarianceFlags else ModifierFlags ) ,
25
25
if (sym.privateWithin.exists) sym.privateWithin.asType.name else tpnme.EMPTY ,
26
26
sym.annotations map (_.tree))
27
27
Original file line number Diff line number Diff line change @@ -437,7 +437,6 @@ object Flags {
437
437
/** Flags representing modifiers that can appear in trees */
438
438
final val ModifierFlags =
439
439
SourceModifierFlags | Module | Param | Synthetic | Package | Local |
440
- CovariantOrOuter | ContravariantOrLabel |
441
440
commonFlags(Mutable )
442
441
// | Trait is subsumed by commonFlags(Lazy) from SourceModifierFlags
443
442
You can’t perform that action at this time.
0 commit comments