Skip to content

Commit 9802897

Browse files
committed
Relax assertion to allow printing trees with overloaded denotations after typer
1 parent b89e713 commit 9802897

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/core/Types.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1825,7 +1825,7 @@ object Types {
18251825

18261826
private def setDenot(denot: Denotation)(implicit ctx: Context): Unit = {
18271827
if (ctx.isAfterTyper)
1828-
assert(!denot.isOverloaded, this)
1828+
assert(!denot.isOverloaded || ctx.mode.is(Mode.Printing), this)
18291829
if (Config.checkNoDoubleBindings)
18301830
if (ctx.settings.YnoDoubleBindings.value)
18311831
checkSymAssign(denot.symbol)

0 commit comments

Comments
 (0)