Skip to content

Commit

Permalink
Make Namer#ClassCompleter#completerCtx a given
Browse files Browse the repository at this point in the history
instead of an `implicit val`,
to account for the changes in given prioritization from scala#19300 and scala#21226,
which made it ambiguous with the `Completer#creationContext` given.
  • Loading branch information
EugeneFlesselle authored and WojciechMazur committed Jul 24, 2024
1 parent cdf3dec commit b595f73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/src/dotty/tools/dotc/typer/Namer.scala
Original file line number Diff line number Diff line change
Expand Up @@ -1106,7 +1106,7 @@ class Namer { typer: Typer =>
class ClassCompleter(cls: ClassSymbol, original: TypeDef)(ictx: Context) extends Completer(original)(ictx) {
withDecls(newScope(using ictx))

protected implicit val completerCtx: Context = localContext(cls)
protected given completerCtx: Context = localContext(cls)

private var localCtx: Context = uninitialized

Expand Down

0 comments on commit b595f73

Please sign in to comment.