Skip to content

Commit 90e995d

Browse files
committed
Polishings
1 parent 73aad85 commit 90e995d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

compiler/src/dotty/tools/dotc/typer/Implicits.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -730,7 +730,7 @@ trait Implicits { self: Typer =>
730730
def synthesizedGeneric(formal: Type): Tree =
731731
formal.argTypes match {
732732
case arg :: Nil =>
733-
val arg1 = fullyDefinedType(arg, "ClassTag argument", pos)
733+
val arg1 = fullyDefinedType(arg, "Generic argument", pos)
734734
val clsType = checkClassType(arg1, pos, traitReq = false, stablePrefixReq = true)
735735
new Deriver(clsType.classSymbol.asClass, pos).genericInstance(clsType)
736736
case _ =>

compiler/src/dotty/tools/dotc/typer/Inliner.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -918,7 +918,7 @@ class Inliner(call: tpd.Tree, rhsToInline: tpd.Tree)(implicit ctx: Context) {
918918
| patterns : ${tree.cases.map(patStr).mkString("\n ")}"""
919919
else
920920
em"""cannot reduce inline match with
921-
| scrutinee: $sel : ${selType} : ${selType.underlyingIfProxy}
921+
| scrutinee: $sel : ${selType}
922922
| patterns : ${tree.cases.map(patStr).mkString("\n ")}"""
923923
errorTree(tree, msg)
924924
}

0 commit comments

Comments
 (0)