Skip to content

Commit 9413cc0

Browse files
Merge pull request #6580 from dotty-staging/macro-debuggability
Improve debuggability for compiler crash when using tasty reflect
2 parents 6ede814 + 24dcb0c commit 9413cc0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1129,7 +1129,7 @@ object tpd extends Trees.Instance[Type] with TypedTreeInfo {
11291129
val alternatives = ctx.typer.resolveOverloaded(allAlts, proto)
11301130
assert(alternatives.size == 1,
11311131
i"${if (alternatives.isEmpty) "no" else "multiple"} overloads available for " +
1132-
i"$method on ${receiver.tpe.widenDealiasKeepAnnots} with targs: $targs%, %; args: $args%, % of types ${args.tpes}%, %; expectedType: $expectedType." +
1132+
i"$method on ${receiver.tpe.widenDealiasKeepAnnots} with targs: $targs%, %; args: $args%, % of types ${args.tpes.map(_.widenDealiasKeepAnnots)}%, %; expectedType: $expectedType." +
11331133
i"all alternatives: ${allAlts.map(_.symbol.showDcl).mkString(", ")}\n" +
11341134
i"matching alternatives: ${alternatives.map(_.symbol.showDcl).mkString(", ")}.") // this is parsed from bytecode tree. there's nothing user can do about it
11351135
alternatives.head

0 commit comments

Comments
 (0)