diff options
author | Martin Odersky <odersky@gmail.com> | 2013-08-15 10:57:41 +0200 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2013-08-15 10:57:41 +0200 |
commit | f540194f1b04c044c969772d5989d129264ea781 (patch) | |
tree | a0479b93131380eb79cc8798094efdd934fa552f | |
parent | ae3e18c81517db5df656caf105bc09e0aab3f4a1 (diff) | |
download | dotty-f540194f1b04c044c969772d5989d129264ea781.tar.gz dotty-f540194f1b04c044c969772d5989d129264ea781.tar.bz2 dotty-f540194f1b04c044c969772d5989d129264ea781.zip |
Converted some more s"" to i""
-rw-r--r-- | src/dotty/tools/dotc/typer/Inferencing.scala | 5 |
1 files 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 } |