aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/typer/Applications.scala
diff options
context:
space:
mode:
authorSamuel Gruetter <samuel.gruetter@epfl.ch>2014-03-26 20:53:17 +0100
committerSamuel Gruetter <samuel.gruetter@epfl.ch>2014-04-02 15:05:19 +0200
commit77a04b26d7c24ed56b4be45cfb41fa8b2e75a461 (patch)
tree618b6a85fe0546bd27ec78b10560145edd8191eb /src/dotty/tools/dotc/typer/Applications.scala
parente4ee662a55c83568caa18a8d2212766f299cc575 (diff)
downloaddotty-77a04b26d7c24ed56b4be45cfb41fa8b2e75a461.tar.gz
dotty-77a04b26d7c24ed56b4be45cfb41fa8b2e75a461.tar.bz2
dotty-77a04b26d7c24ed56b4be45cfb41fa8b2e75a461.zip
replace i"..." by d"..." if string might go into a
Diagnostic and might be nonsensical Conflicts: src/dotty/tools/dotc/typer/Checking.scala src/dotty/tools/dotc/typer/TypeAssigner.scala
Diffstat (limited to 'src/dotty/tools/dotc/typer/Applications.scala')
-rw-r--r--src/dotty/tools/dotc/typer/Applications.scala6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/dotty/tools/dotc/typer/Applications.scala b/src/dotty/tools/dotc/typer/Applications.scala
index 9a21e1c54..f1feb5361 100644
--- a/src/dotty/tools/dotc/typer/Applications.scala
+++ b/src/dotty/tools/dotc/typer/Applications.scala
@@ -647,7 +647,7 @@ trait Applications extends Compatibility { self: Typer =>
maximizeType(unapplyArgType) match {
case Some(tvar) =>
def msg =
- i"""There is no best instantiation of pattern type $unapplyArgType
+ d"""There is no best instantiation of pattern type $unapplyArgType
|that makes it a subtype of selector type $pt.
|Non-variant type variable ${tvar.origin} cannot be uniquely instantiated.""".stripMargin
if (fromScala2x) {
@@ -671,7 +671,7 @@ trait Applications extends Compatibility { self: Typer =>
unapp.println("Neither sub nor super")
unapp.println(TypeComparer.explained(implicit ctx => unapplyArgType <:< wpt))
errorType(
- i"Pattern type $unapplyArgType is neither a subtype nor a supertype of selector type $wpt",
+ d"Pattern type $unapplyArgType is neither a subtype nor a supertype of selector type $wpt",
tree.pos)
}
@@ -692,7 +692,7 @@ trait Applications extends Compatibility { self: Typer =>
case _ => args
}
if (argTypes.length != bunchedArgs.length) {
- ctx.error(i"wrong number of argument patterns for $qual; expected: ($argTypes%, %)", tree.pos)
+ ctx.error(d"wrong number of argument patterns for $qual; expected: ($argTypes%, %)", tree.pos)
argTypes = argTypes.take(args.length) ++
List.fill(argTypes.length - args.length)(WildcardType)
}