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 #19300 and #21226,
which made it ambiguous with the `Completer#creationContext` given.
  • Loading branch information
EugeneFlesselle committed Jul 19, 2024
1 parent 184bdc2 commit e5fb143
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 e5fb143

Please sign in to comment.