We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 087cf9f commit 5e4a340Copy full SHA for 5e4a340
compiler/src/dotty/tools/dotc/core/Types.scala
@@ -1826,7 +1826,7 @@ object Types {
1826
1827
private def setDenot(denot: Denotation)(implicit ctx: Context): Unit = {
1828
if (ctx.isAfterTyper)
1829
- assert(!denot.isOverloaded, this)
+ assert(!denot.isOverloaded || ctx.mode.is(Mode.Printing), this)
1830
if (Config.checkNoDoubleBindings)
1831
if (ctx.settings.YnoDoubleBindings.value)
1832
checkSymAssign(denot.symbol)
0 commit comments