We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f2acd0c + b8062e1 commit 9f70200Copy full SHA for 9f70200
presentation-compiler/src/main/dotty/tools/pc/utils/InteractiveEnrichments.scala
@@ -313,7 +313,7 @@ object InteractiveEnrichments extends CommonMtagsEnrichments:
313
case Select(_, name: TermName) if infixNames(name) => false
314
case Select(This(_), _) => false
315
// is a select statement without a dot `qual.name`
316
- case sel @ Select(qual, _) if !sel.symbol.is(Synthetic) =>
+ case sel @ Select(qual, _) if !sel.symbol.is(Synthetic) && sel.nameSpan.start < tree.source.length =>
317
val source = tree.source
318
!(qual.span.end until sel.nameSpan.start)
319
.map(source.apply)
0 commit comments