diff options
author | Samuel Gruetter <samuel.gruetter@epfl.ch> | 2014-03-26 21:00:11 +0100 |
---|---|---|
committer | Samuel Gruetter <samuel.gruetter@epfl.ch> | 2014-04-02 15:15:58 +0200 |
commit | 9b67ac2fb417f00a524ce7f5bc37eb9694763033 (patch) | |
tree | e98b321ff782f1b9594424b7a0856440a2110be8 /src/dotty/tools/dotc/typer/Applications.scala | |
parent | 77a04b26d7c24ed56b4be45cfb41fa8b2e75a461 (diff) | |
download | dotty-9b67ac2fb417f00a524ce7f5bc37eb9694763033.tar.gz dotty-9b67ac2fb417f00a524ce7f5bc37eb9694763033.tar.bz2 dotty-9b67ac2fb417f00a524ce7f5bc37eb9694763033.zip |
replace some s"..." by i"..."
Conflicts:
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.scala | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/dotty/tools/dotc/typer/Applications.scala b/src/dotty/tools/dotc/typer/Applications.scala index f1feb5361..57f11480c 100644 --- a/src/dotty/tools/dotc/typer/Applications.scala +++ b/src/dotty/tools/dotc/typer/Applications.scala @@ -588,9 +588,9 @@ trait Applications extends Compatibility { self: Typer => def extractorMemberType(tp: Type, name: Name) = { val ref = tp member name if (ref.isOverloaded) - errorType(s"Overloaded reference to ${ref.show} is not allowed in extractor", tree.pos) + errorType(i"Overloaded reference to $ref is not allowed in extractor", tree.pos) else if (ref.info.isInstanceOf[PolyType]) - errorType(s"Reference to polymorphic ${ref.show}: ${ref.info.show} is not allowed in extractor", tree.pos) + errorType(i"Reference to polymorphic $ref: ${ref.info} is not allowed in extractor", tree.pos) else ref.info.widenExpr.dealias } @@ -618,7 +618,7 @@ trait Applications extends Compatibility { self: Typer => if (unapplyResult derivesFrom defn.SeqClass) seqSelector :: Nil else if (unapplyResult isRef defn.BooleanClass) Nil else { - ctx.error(s"${unapplyResult.show} is not a valid result type of an unapply method of an extractor", tree.pos) + ctx.error(i"$unapplyResult is not a valid result type of an unapply method of an extractor", tree.pos) Nil } } @@ -636,7 +636,7 @@ trait Applications extends Compatibility { self: Typer => unapplyFn.tpe.widen match { case mt: MethodType if mt.paramTypes.length == 1 && !mt.isDependent => val unapplyArgType = mt.paramTypes.head - unapp.println(s"unapp arg tpe = ${unapplyArgType.show}, pt = ${pt.show}") + unapp.println(i"unapp arg tpe = $unapplyArgType, pt = $pt") def wpt = widenForMatchSelector(pt) // needed? val ownType = if (pt <:< unapplyArgType) { |