@@ -490,15 +490,15 @@ class Typer extends Namer with TypeAssigner with Applications with Implicits wit
490
490
}
491
491
val ofFun =
492
492
if (nme.syntheticParamNames(args.length + 1 ) contains param.name)
493
- s " of expanded function ${ tree.show} "
493
+ i " of expanded function $tree"
494
494
else
495
495
" "
496
- errorType(s " missing parameter type for parameter ${param.name}$ofFun, expected = ${pt.show} " , param.pos)
496
+ errorType(i " missing parameter type for parameter ${param.name}$ofFun, expected = $pt " , param.pos)
497
497
}
498
498
499
499
def protoFormal (i : Int ): Type =
500
500
if (protoFormals.length == params.length) protoFormals(i)
501
- else errorType(s " wrong number of parameters, expected: ${protoFormals.length}" , tree.pos)
501
+ else errorType(i " wrong number of parameters, expected: ${protoFormals.length}" , tree.pos)
502
502
503
503
val inferredParams : List [untpd.ValDef ] =
504
504
for ((param, i) <- params.zipWithIndex) yield
@@ -700,7 +700,7 @@ class Typer extends Namer with TypeAssigner with Applications with Implicits wit
700
700
}
701
701
val res = cpy.RefinedTypeTree (tree, tpt1, refinements1) withType
702
702
(tpt1.tpe /: refinements1)(addRefinement)
703
- typr.println(s " typed refinement: ${res.tpe.show }" )
703
+ typr.println(i " typed refinement: ${res.tpe}" )
704
704
res
705
705
}
706
706
@@ -728,7 +728,7 @@ class Typer extends Namer with TypeAssigner with Applications with Implicits wit
728
728
729
729
def typedBind (tree : untpd.Bind , pt : Type )(implicit ctx : Context ): Bind = track(" typedBind" ) {
730
730
val body1 = typed(tree.body, pt)
731
- typr.println(s " typed bind ${ tree.show} pt = ${pt.show} bodytpe = ${body1.tpe.show }" )
731
+ typr.println(i " typed bind $tree pt = $pt bodytpe = ${body1.tpe}" )
732
732
val sym = ctx.newSymbol(ctx.owner, tree.name.asTermName, EmptyFlags , body1.tpe, coord = tree.pos)
733
733
assignType(cpy.Bind (tree, tree.name, body1), sym)
734
734
}
@@ -951,7 +951,7 @@ class Typer extends Namer with TypeAssigner with Applications with Implicits wit
951
951
}
952
952
}
953
953
954
- def typed (tree : untpd.Tree , pt : Type = WildcardType )(implicit ctx : Context ): Tree = /* >|>*/ ctx.traceIndented (s " typing ${ tree.show} " , typr, show = true ) /* <|<*/ {
954
+ def typed (tree : untpd.Tree , pt : Type = WildcardType )(implicit ctx : Context ): Tree = /* >|>*/ ctx.traceIndented (i " typing $tree" , typr, show = true ) /* <|<*/ {
955
955
if (! tree.isEmpty && ctx.typerState.isGlobalCommittable) assert(tree.pos.exists, tree)
956
956
try adapt(typedUnadapted(tree, pt), pt)
957
957
catch {
@@ -1158,7 +1158,7 @@ class Typer extends Namer with TypeAssigner with Applications with Implicits wit
1158
1158
if (tree.tpe <:< pt) tree
1159
1159
else if (ctx.mode is Mode .Pattern ) tree // no subtype check for pattern
1160
1160
else {
1161
- typr.println(s " adapt to subtype ${tree.tpe.show } !<:< ${pt.show} " )
1161
+ typr.println(i " adapt to subtype ${tree.tpe} !<:< $pt " )
1162
1162
// typr.println(TypeComparer.explained(implicit ctx => tree.tpe <:< pt))
1163
1163
adaptToSubType(wtp)
1164
1164
}
0 commit comments