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.
$
1 parent a50e89b commit 7f10cf2Copy full SHA for 7f10cf2
presentation-compiler/src/main/dotty/tools/pc/PcCollector.scala
@@ -315,7 +315,7 @@ object EndMarker:
315
def getPosition(df: NamedDefTree, pos: SourcePosition, sourceText: String)(
316
implicit ct: Context
317
): Option[SourcePosition] =
318
- val name = df.name.toString()
+ val name = df.name.toString().stripSuffix("$")
319
val endMarkerLine =
320
sourceText.slice(df.span.start, df.span.end).split('\n').last
321
val index = endMarkerLine.length() - name.length()
0 commit comments