We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 27224a4 commit bb86c49Copy full SHA for bb86c49
compiler/src/dotty/tools/dotc/transform/CheckUnused.scala
@@ -52,6 +52,8 @@ class CheckUnused private (phaseMode: PhaseMode, suffix: String) extends MiniPha
52
53
override def transformIdent(tree: Ident)(using Context): tree.type =
54
if tree.symbol.exists then
55
+ if !tree.srcPos.span.exists then
56
+ println(s"NoSpan for Ident ${tree.name} (${tree.symbol}) [${refInfos.inlined}]")
57
// if in an inline expansion, resolve at summonInline (synthetic pos) or in an enclosing call site
58
val resolving =
59
refInfos.inlined.isEmpty
0 commit comments