Skip to content

Commit e5fb143

Browse files
Make Namer#ClassCompleter#completerCtx a given
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.
1 parent 184bdc2 commit e5fb143

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -1106,7 +1106,7 @@ class Namer { typer: Typer =>
11061106
class ClassCompleter(cls: ClassSymbol, original: TypeDef)(ictx: Context) extends Completer(original)(ictx) {
11071107
withDecls(newScope(using ictx))
11081108

1109-
protected implicit val completerCtx: Context = localContext(cls)
1109+
protected given completerCtx: Context = localContext(cls)
11101110

11111111
private var localCtx: Context = uninitialized
11121112

0 commit comments

Comments
 (0)