Skip to content

Commit 815e4db

Browse files
committed
Use previous span for class type parameters
1 parent ac68e97 commit 815e4db

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

compiler/src/dotty/tools/dotc/typer/Inliner.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -446,6 +446,7 @@ class Inliner(call: tpd.Tree, rhsToInline: tpd.Tree)(implicit ctx: Context) {
446446
case tree: Ident =>
447447
def span =
448448
if (tree.name == nme.WILDCARD) tree.span // From type match
449+
else if (tree.symbol.isTypeParam && tree.symbol.owner.isClass) tree.span // TODO is this the correct span?
449450
else paramSpan(tree.name)
450451
paramProxy.get(tree.tpe) match {
451452
case Some(t) if tree.isTerm && t.isSingleton =>

0 commit comments

Comments
 (0)