Skip to content

Commit bb86c49

Browse files
committed
debug
1 parent 27224a4 commit bb86c49

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

compiler/src/dotty/tools/dotc/transform/CheckUnused.scala

+2
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ class CheckUnused private (phaseMode: PhaseMode, suffix: String) extends MiniPha
5252

5353
override def transformIdent(tree: Ident)(using Context): tree.type =
5454
if tree.symbol.exists then
55+
if !tree.srcPos.span.exists then
56+
println(s"NoSpan for Ident ${tree.name} (${tree.symbol}) [${refInfos.inlined}]")
5557
// if in an inline expansion, resolve at summonInline (synthetic pos) or in an enclosing call site
5658
val resolving =
5759
refInfos.inlined.isEmpty

0 commit comments

Comments
 (0)