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.
2 parents c80b04d + 9dd4aec commit 2da8afdCopy full SHA for 2da8afd
src/dotty/tools/dotc/transform/TypeTestsCasts.scala
@@ -50,7 +50,7 @@ trait TypeTestsCasts {
50
if (expr.tpe <:< argType)
51
Literal(Constant(true)) withPos tree.pos
52
else if (argCls.isPrimitiveValueClass)
53
- if (qualCls.isPrimitiveValueClass) Literal(Constant(qualCls == argCls))
+ if (qualCls.isPrimitiveValueClass) Literal(Constant(qualCls == argCls)) withPos tree.pos
54
else transformIsInstanceOf(expr, defn.boxedClass(argCls).typeRef)
55
else argType.dealias match {
56
case _: SingletonType =>
0 commit comments