diff options
author | Martin Odersky <odersky@gmail.com> | 2015-04-25 13:39:53 +0200 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2015-04-25 13:39:53 +0200 |
commit | 7ebc9e2f74e5452749a39f9423de0ba4bd91d7c2 (patch) | |
tree | 74cd69beeb28cbf7237a0741a3e4ffa5a507a493 /src/dotty/tools/dotc/typer/Applications.scala | |
parent | d94f0b8d7b2bc06c0f0642a714f7940d2f2a9348 (diff) | |
download | dotty-7ebc9e2f74e5452749a39f9423de0ba4bd91d7c2.tar.gz dotty-7ebc9e2f74e5452749a39f9423de0ba4bd91d7c2.tar.bz2 dotty-7ebc9e2f74e5452749a39f9423de0ba4bd91d7c2.zip |
Better error message constructor applications
If a constructor for class C was called with wrong number of parameters,
the previous error message referred to `method <init>`. Now it is
`constructor C`.
Diffstat (limited to 'src/dotty/tools/dotc/typer/Applications.scala')
-rw-r--r-- | src/dotty/tools/dotc/typer/Applications.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dotty/tools/dotc/typer/Applications.scala b/src/dotty/tools/dotc/typer/Applications.scala index c5bd70c1e..2ba27d0f4 100644 --- a/src/dotty/tools/dotc/typer/Applications.scala +++ b/src/dotty/tools/dotc/typer/Applications.scala @@ -192,7 +192,7 @@ trait Applications extends Compatibility { self: Typer => def success = ok protected def methodType = methType.asInstanceOf[MethodType] - private def methString: String = s"method ${methRef.name}: ${methType.show}" + private def methString: String = i"${methRef.symbol}: ${methType.show}" /** Re-order arguments to correctly align named arguments */ def reorder[T >: Untyped](args: List[Trees.Tree[T]]): List[Trees.Tree[T]] = { |