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 b89e713 commit 9802897Copy full SHA for 9802897
compiler/src/dotty/tools/dotc/core/Types.scala
@@ -1825,7 +1825,7 @@ object Types {
1825
1826
private def setDenot(denot: Denotation)(implicit ctx: Context): Unit = {
1827
if (ctx.isAfterTyper)
1828
- assert(!denot.isOverloaded, this)
+ assert(!denot.isOverloaded || ctx.mode.is(Mode.Printing), this)
1829
if (Config.checkNoDoubleBindings)
1830
if (ctx.settings.YnoDoubleBindings.value)
1831
checkSymAssign(denot.symbol)
0 commit comments