Skip to content

Commit 39719aa

Browse files
committed
More info when resolveOverloading fails
1 parent 305a9f0 commit 39719aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/dotty/tools/dotc/ast/tpd.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -852,7 +852,7 @@ object tpd extends Trees.Instance[Type] with TypedTreeInfo {
852852
ctx.typer.resolveOverloaded(allAlts, proto, Nil)
853853
assert(alternatives.size == 1,
854854
i"${if (alternatives.isEmpty) "no" else "multiple"} overloads available for " +
855-
i"$method on ${receiver.tpe.widenDealias} with targs: $targs, args: $args and expectedType: $expectedType." +
855+
i"$method on ${receiver.tpe.widenDealias} with targs: $targs%, %; args: $args%, % of types ${args.tpes}%, %; expectedType: $expectedType." +
856856
i" isAnnotConstructor = $isAnnotConstructor.\n" +
857857
i"all alternatives: ${allAlts.map(_.symbol.showDcl).mkString(", ")}\n" +
858858
i"matching alternatives: ${alternatives.map(_.symbol.showDcl).mkString(", ")}.") // this is parsed from bytecode tree. there's nothing user can do about it

0 commit comments

Comments
 (0)