diff options
author | Shane Delmore <shane@delmore.io> | 2016-10-24 17:34:37 -0700 |
---|---|---|
committer | Shane Delmore <shane@delmore.io> | 2016-10-25 14:37:00 -0700 |
commit | 63f1a3c5d0149d173eb8f65405b5983591752229 (patch) | |
tree | f12825d3305e9752654de33ff2714695315edf42 /src/dotty/tools/dotc/typer/ErrorReporting.scala | |
parent | 0ab12174a5a60616a0ef818a86b21adeb21395bb (diff) | |
download | dotty-63f1a3c5d0149d173eb8f65405b5983591752229.tar.gz dotty-63f1a3c5d0149d173eb8f65405b5983591752229.tar.bz2 dotty-63f1a3c5d0149d173eb8f65405b5983591752229.zip |
Improve error message for WrongNumberOfArgs
Diffstat (limited to 'src/dotty/tools/dotc/typer/ErrorReporting.scala')
-rw-r--r-- | src/dotty/tools/dotc/typer/ErrorReporting.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dotty/tools/dotc/typer/ErrorReporting.scala b/src/dotty/tools/dotc/typer/ErrorReporting.scala index 1d22dc646..a18c83ff8 100644 --- a/src/dotty/tools/dotc/typer/ErrorReporting.scala +++ b/src/dotty/tools/dotc/typer/ErrorReporting.scala @@ -49,8 +49,8 @@ object ErrorReporting { errorMsg(ex.show, ctx) } - def wrongNumberOfArgs(fntpe: Type, kind: String, expected: Int, pos: Position)(implicit ctx: Context) = - errorType(em"wrong number of ${kind}arguments for $fntpe, expected: $expected", pos) + def wrongNumberOfArgs(fntpe: Type, kind: String, expectedArgs: List[TypeParamInfo], actual: List[untpd.Tree], pos: Position)(implicit ctx: Context) = + errorType(WrongNumberOfArgs(fntpe, kind, expectedArgs, actual)(ctx), pos) class Errors(implicit ctx: Context) { |