Skip to content

Commit c2f96d2

Browse files
committed
Polishings
1 parent eb8a9ab commit c2f96d2

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
@@ -728,7 +728,7 @@ trait Implicits { self: Typer =>
728728
def synthesizedGeneric(formal: Type): Tree =
729729
formal.argTypes match {
730730
case arg :: Nil =>
731-
val arg1 = fullyDefinedType(arg, "ClassTag argument", pos)
731+
val arg1 = fullyDefinedType(arg, "Generic argument", pos)
732732
val clsType = checkClassType(arg1, pos, traitReq = false, stablePrefixReq = true)
733733
new Deriver(clsType.classSymbol.asClass, pos).genericInstance(clsType)
734734
case _ =>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -909,7 +909,7 @@ class Inliner(call: tpd.Tree, rhsToInline: tpd.Tree)(implicit ctx: Context) {
909909
| patterns : ${tree.cases.map(patStr).mkString("\n ")}"""
910910
else
911911
em"""cannot reduce inline match with
912-
| scrutinee: $sel : ${selType} : ${selType.underlyingIfProxy}
912+
| scrutinee: $sel : ${selType}
913913
| patterns : ${tree.cases.map(patStr).mkString("\n ")}"""
914914
errorTree(tree, msg)
915915
}

0 commit comments

Comments
 (0)