From ea7c9440fecaa80f8c5e576346e50b041a52c8db Mon Sep 17 00:00:00 2001 From: Eugene Flesselle Date: Fri, 19 Jul 2024 15:32:28 +0200 Subject: [PATCH] Make `Namer#ClassCompleter#completerCtx` a given to account for changes in given prioritization from #19300 and #21226 --- compiler/src/dotty/tools/dotc/typer/Namer.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/src/dotty/tools/dotc/typer/Namer.scala b/compiler/src/dotty/tools/dotc/typer/Namer.scala index 83964417a6f1..bd0d826bc17d 100644 --- a/compiler/src/dotty/tools/dotc/typer/Namer.scala +++ b/compiler/src/dotty/tools/dotc/typer/Namer.scala @@ -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