Skip to content

Commit bcfebf8

Browse files
committed
Use implicit flag unions where possible
1 parent a6438cd commit bcfebf8

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

compiler/src/dotty/tools/dotc/ast/Desugar.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ object desugar {
161161
vparamss = (setterParam :: Nil) :: Nil,
162162
tpt = TypeTree(defn.UnitType),
163163
rhs = setterRhs
164-
).withMods((mods | Accessor) &~ (CaseAccessor | Implicit | Given | Lazy))
164+
).withMods((mods | Accessor) &~ (CaseAccessor | ImplicitOrGiven | Lazy))
165165
Thicket(vdef, setter)
166166
}
167167
else vdef

compiler/src/dotty/tools/dotc/core/Types.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -789,7 +789,7 @@ object Types {
789789
}
790790

791791
/** The set of implicit term members of this type
792-
* @param kind A subset of {Implicit, Implied} that sepcifies what kind of implicit should
792+
* @param kind A subset of {Implicit, Implied} that specifies what kind of implicit should
793793
* be returned
794794
*/
795795
final def implicitMembers(kind: FlagSet)(implicit ctx: Context): List[TermRef] = track("implicitMembers") {

compiler/src/dotty/tools/dotc/typer/Implicits.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ object Implicits {
230230
assert(initctx.typer != null)
231231
lazy val refs: List[ImplicitRef] = {
232232
val buf = new mutable.ListBuffer[TermRef]
233-
for (companion <- companionRefs) buf ++= companion.implicitMembers(ImplicitOrImplied)
233+
for (companion <- companionRefs) buf ++= companion.implicitMembers(ImplicitOrImpliedOrGiven)
234234
buf.toList
235235
}
236236

compiler/src/dotty/tools/dotc/typer/Namer.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -988,7 +988,7 @@ class Namer { typer: Typer =>
988988
val maybeStable = if (mbr.symbol.isStableMember) StableRealizable else EmptyFlags
989989
ctx.newSymbol(
990990
cls, alias,
991-
Exported | Method | Final | maybeStable | mbr.symbol.flags & ImplicitOrImplied,
991+
Exported | Method | Final | maybeStable | mbr.symbol.flags & ImplicitOrImpliedOrGiven,
992992
mbr.info.ensureMethodic,
993993
coord = span)
994994
}

0 commit comments

Comments
 (0)