From 0800e0feaa0ee7e877d8c19ad0abfca1fd507cf6 Mon Sep 17 00:00:00 2001 From: HarrisL2 Date: Mon, 4 Nov 2024 12:32:04 -0500 Subject: [PATCH] Fix null wildcard in SymbolLoaders --- compiler/src/dotty/tools/dotc/core/SymbolLoaders.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/src/dotty/tools/dotc/core/SymbolLoaders.scala b/compiler/src/dotty/tools/dotc/core/SymbolLoaders.scala index 5690720a1b3f..becfcdb5861c 100644 --- a/compiler/src/dotty/tools/dotc/core/SymbolLoaders.scala +++ b/compiler/src/dotty/tools/dotc/core/SymbolLoaders.scala @@ -337,7 +337,7 @@ abstract class SymbolLoader extends LazyType { self => val sym = root.symbol def associatedFile = root.symbol.associatedFile match case file: AbstractFile => file - case _ => NoAbstractFile + case null => NoAbstractFile ctx.profiler.onCompletion(sym, associatedFile)(body) }