File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -609,7 +609,7 @@ object Types {
609
609
(name, buf) => buf ++= member(name).altsWith(x => ! x.is(Method )))
610
610
}
611
611
612
- /** The set of members of this type having at least one of `requiredFlags` but none of `excludedFlags` set */
612
+ /** The set of members of this type having at least one of `requiredFlags` but none of `excludedFlags` set */
613
613
final def membersBasedOnFlags (requiredFlags : FlagSet , excludedFlags : FlagSet )(implicit ctx : Context ): Seq [SingleDenotation ] = track(" implicitMembers" ) {
614
614
memberDenots(takeAllFilter,
615
615
(name, buf) => buf ++= member(name).altsWith(x => x.is(requiredFlags, butNot = excludedFlags)))
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ class LazyVals extends MiniPhaseTransform with IdentityDenotTransformer with Nee
48
48
override def runsAfter = Set (classOf [Mixin ])
49
49
50
50
def isCompanionNeeded (cls : ClassSymbol )(implicit ctx : Context ): Boolean = {
51
- def hasLazyVal (x : ClassSymbol ) = x.classInfo.membersBasedOnFlags( Flags . Lazy , excludedFlags = Flags .EmptyFlags ).nonEmpty
51
+ def hasLazyVal (cls : ClassSymbol ) = cls.info.decls.exists(_.is( Flags .Lazy ))
52
52
hasLazyVal(cls) || cls.mixins.exists(hasLazyVal)
53
53
}
54
54
You can’t perform that action at this time.
0 commit comments