Skip to content

Commit b300537

Browse files
julienrfTetchki
authored andcommitted
Set missing span of classOf tree
1 parent f4ed6bc commit b300537

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/transform/Erasure.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -637,7 +637,7 @@ object Erasure {
637637
if (tree.typeOpt.isRef(defn.UnitClass))
638638
tree.withType(tree.typeOpt)
639639
else if (tree.const.tag == Constants.ClazzTag)
640-
checkNotErasedClass(clsOf(tree.const.typeValue))
640+
checkNotErasedClass(clsOf(tree.const.typeValue).withSpan(tree.span))
641641
else
642642
super.typedLiteral(tree)
643643

0 commit comments

Comments
 (0)