Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
som-snytt committed Feb 4, 2025
1 parent 27224a4 commit bb86c49
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions compiler/src/dotty/tools/dotc/transform/CheckUnused.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bb86c49

Please sign in to comment.