diff options
author | Martin Odersky <odersky@gmail.com> | 2016-03-10 16:46:14 +0100 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2016-03-10 16:46:14 +0100 |
commit | 39719aadb4076ecf22ca348f607367817638853d (patch) | |
tree | 053cf159dcd38a4de1bb96169c657930da5c1a62 /src | |
parent | 305a9f06bd2b2ac6070beb184d61ff6db4cb9155 (diff) | |
download | dotty-39719aadb4076ecf22ca348f607367817638853d.tar.gz dotty-39719aadb4076ecf22ca348f607367817638853d.tar.bz2 dotty-39719aadb4076ecf22ca348f607367817638853d.zip |
More info when resolveOverloading fails
Diffstat (limited to 'src')
-rw-r--r-- | src/dotty/tools/dotc/ast/tpd.scala | 2 |
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 |