Skip to content

Commit 2da8afd

Browse files
committed
Merge pull request #556 from AlexSikia/fix/unset-tree-pos
Fix unset tree position
2 parents c80b04d + 9dd4aec commit 2da8afd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/dotty/tools/dotc/transform/TypeTestsCasts.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ trait TypeTestsCasts {
5050
if (expr.tpe <:< argType)
5151
Literal(Constant(true)) withPos tree.pos
5252
else if (argCls.isPrimitiveValueClass)
53-
if (qualCls.isPrimitiveValueClass) Literal(Constant(qualCls == argCls))
53+
if (qualCls.isPrimitiveValueClass) Literal(Constant(qualCls == argCls)) withPos tree.pos
5454
else transformIsInstanceOf(expr, defn.boxedClass(argCls).typeRef)
5555
else argType.dealias match {
5656
case _: SingletonType =>

0 commit comments

Comments
 (0)