From f540194f1b04c044c969772d5989d129264ea781 Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Thu, 15 Aug 2013 10:57:41 +0200 Subject: Converted some more s"" to i"" --- src/dotty/tools/dotc/typer/Inferencing.scala | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/dotty/tools/dotc/typer/Inferencing.scala b/src/dotty/tools/dotc/typer/Inferencing.scala index 158603ae7..fe388cc40 100644 --- a/src/dotty/tools/dotc/typer/Inferencing.scala +++ b/src/dotty/tools/dotc/typer/Inferencing.scala @@ -9,6 +9,7 @@ import Trees._ import annotation.unchecked import util.Positions._ import Decorators._ +import ErrorReporting.InfoString object Inferencing { @@ -53,7 +54,7 @@ object Inferencing { def checkStable(tp: Type, pos: Position)(implicit ctx: Context): Type = { if (!tp.isStable) - ctx.error(s"Prefix ${tp.show} is not stable", pos) + ctx.error(i"Prefix $tp is not stable", pos) tp } @@ -64,7 +65,7 @@ object Inferencing { case _: RefinedType | _: TypeVar | _: AnnotatedType => checkClassTypeWithStablePrefix(tp.asInstanceOf[TypeProxy].underlying, pos) case _ => - ctx.error(s"${tp.show} is not a class type", pos) + ctx.error(i"$tp is not a class type", pos) defn.ObjectClass } -- cgit v1.2.3