Skip to content

Commit

Permalink
Update error message
Browse files Browse the repository at this point in the history
Co-authored-by: Nicolas Stucki <nicolas.stucki@gmail.com>
  • Loading branch information
iusildra and nicolasstucki authored Jul 12, 2023
1 parent 82a6d6a commit 04d360d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/src/dotty/tools/dotc/reporting/messages.scala
Original file line number Diff line number Diff line change
Expand Up @@ -1323,7 +1323,7 @@ class VarArgsParamCannotBeGiven(isGiven: Boolean)(using Context)
extends SyntaxMsg(VarArgsParamCannotBeGivenID) {
def msg(using Context) = i"repeated parameters are not allowed in a ${if isGiven then "using" else "implicit"} clause"
def explain(using Context) =
"It is not possible to define a given with a repeated parameter type."
"It is not possible to define a given with a repeated parameter type. This hypothetical given parameter could always be satisfied by providing 0 arguments, which defeats the purpose of a given argument."
}


Expand Down

0 comments on commit 04d360d

Please sign in to comment.