Skip to content

Commit 8b9b68c

Browse files
committed
Fix error message
"Expected:" always came out empty: `[]`.
1 parent 7e2627c commit 8b9b68c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

compiler/src/dotty/tools/dotc/reporting/diagnostic/messages.scala

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -668,8 +668,7 @@ object messages {
668668
private val msgPrefix = if (actualCount > expectedCount) "Too many" else "Not enough"
669669

670670
//TODO add def simpleParamName to ParamInfo
671-
private val expectedArgString = fntpe
672-
.widen.typeParams
671+
private val expectedArgString = expectedArgs
673672
.map(_.paramName.unexpandedName.show)
674673
.mkString("[", ", ", "]")
675674

0 commit comments

Comments
 (0)