Skip to content

Commit a4a611c

Browse files
authored
Merge pull request #4898 from dotty-staging/fix-reporting
Fix printing of type in type test warnings
2 parents f20f92a + f19b8a1 commit a4a611c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ object TypeTestsCasts {
270270
if (sym.isTypeTest) {
271271
val argType = tree.args.head.tpe
272272
if (!checkable(expr.tpe, argType, tree.pos))
273-
ctx.warning(s"the type test for $argType cannot be checked at runtime", tree.pos)
273+
ctx.warning(i"the type test for $argType cannot be checked at runtime", tree.pos)
274274
transformTypeTest(expr, tree.args.head.tpe, flagUnrelated = true)
275275
}
276276
else if (sym eq defn.Any_asInstanceOf)

0 commit comments

Comments
 (0)