Skip to content

Commit 09152eb

Browse files
Update compiler/src/dotty/tools/dotc/transform/PCPCheckAndHeal.scala
Co-authored-by: Fengyun Liu <[email protected]>
1 parent ebf5b96 commit 09152eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/transform/PCPCheckAndHeal.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ class PCPCheckAndHeal(@constructorOnly ictx: Context) extends TreeMapWithStages(
179179
case prefix: TermRef if tp.symbol.isSplice =>
180180
prefix.symbol.info.argInfos match
181181
case (tb: TypeBounds) :: _ =>
182-
ctx.error(em"Cannot splice $tp with wildcard type", pos)
182+
ctx.error(em"Cannot splice $tp because it is a wildcard type", pos)
183183
case _ =>
184184
// Heal explicit type splice in the code
185185
if level > 0 then getQuoteTypeTags.getTagRef(prefix) else tp

0 commit comments

Comments
 (0)