aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/ast/tpd.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2016-03-10 16:46:14 +0100
committerMartin Odersky <odersky@gmail.com>2016-03-10 16:46:14 +0100
commit39719aadb4076ecf22ca348f607367817638853d (patch)
tree053cf159dcd38a4de1bb96169c657930da5c1a62 /src/dotty/tools/dotc/ast/tpd.scala
parent305a9f06bd2b2ac6070beb184d61ff6db4cb9155 (diff)
downloaddotty-39719aadb4076ecf22ca348f607367817638853d.tar.gz
dotty-39719aadb4076ecf22ca348f607367817638853d.tar.bz2
dotty-39719aadb4076ecf22ca348f607367817638853d.zip
More info when resolveOverloading fails
Diffstat (limited to 'src/dotty/tools/dotc/ast/tpd.scala')
-rw-r--r--src/dotty/tools/dotc/ast/tpd.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dotty/tools/dotc/ast/tpd.scala b/src/dotty/tools/dotc/ast/tpd.scala
index bf6084d7a..9a6f74331 100644
--- a/src/dotty/tools/dotc/ast/tpd.scala
+++ b/src/dotty/tools/dotc/ast/tpd.scala
@@ -852,7 +852,7 @@ object tpd extends Trees.Instance[Type] with TypedTreeInfo {
ctx.typer.resolveOverloaded(allAlts, proto, Nil)
assert(alternatives.size == 1,
i"${if (alternatives.isEmpty) "no" else "multiple"} overloads available for " +
- i"$method on ${receiver.tpe.widenDealias} with targs: $targs, args: $args and expectedType: $expectedType." +
+ i"$method on ${receiver.tpe.widenDealias} with targs: $targs%, %; args: $args%, % of types ${args.tpes}%, %; expectedType: $expectedType." +
i" isAnnotConstructor = $isAnnotConstructor.\n" +
i"all alternatives: ${allAlts.map(_.symbol.showDcl).mkString(", ")}\n" +
i"matching alternatives: ${alternatives.map(_.symbol.showDcl).mkString(", ")}.") // this is parsed from bytecode tree. there's nothing user can do about it