Skip to content

Commit 6db9f8b

Browse files
Add missing position on SeqLiteral
1 parent 405b5d8 commit 6db9f8b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -969,7 +969,7 @@ trait Applications extends Compatibility { self: Typer with Dynamic =>
969969
args.init :+ argSeq
970970
case _ =>
971971
val (regularArgs, varArgs) = args.splitAt(argTypes.length - 1)
972-
regularArgs :+ untpd.SeqLiteral(varArgs, untpd.TypeTree())
972+
regularArgs :+ untpd.SeqLiteral(varArgs, untpd.TypeTree()).withPos(tree.pos)
973973
}
974974
else if (argTypes.lengthCompare(1) == 0 && args.lengthCompare(1) > 0 && ctx.canAutoTuple)
975975
untpd.Tuple(args) :: Nil

0 commit comments

Comments
 (0)