From bb86c49fb93737b338898d6dd0e5a02e0a29e3bf Mon Sep 17 00:00:00 2001 From: Som Snytt Date: Mon, 3 Feb 2025 14:43:52 -0800 Subject: [PATCH] debug --- compiler/src/dotty/tools/dotc/transform/CheckUnused.scala | 2 ++ 1 file changed, 2 insertions(+) diff --git a/compiler/src/dotty/tools/dotc/transform/CheckUnused.scala b/compiler/src/dotty/tools/dotc/transform/CheckUnused.scala index 03accbdfeb5c..fe3a61d68beb 100644 --- a/compiler/src/dotty/tools/dotc/transform/CheckUnused.scala +++ b/compiler/src/dotty/tools/dotc/transform/CheckUnused.scala @@ -52,6 +52,8 @@ class CheckUnused private (phaseMode: PhaseMode, suffix: String) extends MiniPha override def transformIdent(tree: Ident)(using Context): tree.type = if tree.symbol.exists then + if !tree.srcPos.span.exists then + println(s"NoSpan for Ident ${tree.name} (${tree.symbol}) [${refInfos.inlined}]") // if in an inline expansion, resolve at summonInline (synthetic pos) or in an enclosing call site val resolving = refInfos.inlined.isEmpty