From f19b8a10d04c5b919cbfa62fce07aa4b66a87084 Mon Sep 17 00:00:00 2001 From: Allan Renucci Date: Mon, 6 Aug 2018 11:16:46 +0200 Subject: [PATCH] Fix printing of type in type test warnings --- compiler/src/dotty/tools/dotc/transform/TypeTestsCasts.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/src/dotty/tools/dotc/transform/TypeTestsCasts.scala b/compiler/src/dotty/tools/dotc/transform/TypeTestsCasts.scala index fa32333739cb..1bffe1372586 100644 --- a/compiler/src/dotty/tools/dotc/transform/TypeTestsCasts.scala +++ b/compiler/src/dotty/tools/dotc/transform/TypeTestsCasts.scala @@ -270,7 +270,7 @@ object TypeTestsCasts { if (sym.isTypeTest) { val argType = tree.args.head.tpe if (!checkable(expr.tpe, argType, tree.pos)) - ctx.warning(s"the type test for $argType cannot be checked at runtime", tree.pos) + ctx.warning(i"the type test for $argType cannot be checked at runtime", tree.pos) transformTypeTest(expr, tree.args.head.tpe, flagUnrelated = true) } else if (sym eq defn.Any_asInstanceOf)