Skip to content

Commit 239ec17

Browse files
committed
Drop invalid assertion
We might now get more overloaded denotations than before, which only differ in type parameters.
1 parent 9553980 commit 239ec17

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1916,8 +1916,6 @@ object Types {
19161916
setDenot(memberDenot(name, allowPrivate = !symbol.exists || symbol.is(Private)))
19171917

19181918
private def setDenot(denot: Denotation)(implicit ctx: Context): Unit = {
1919-
if (ctx.isAfterTyper)
1920-
assert(!denot.isOverloaded || ctx.mode.is(Mode.Printing), this)
19211919
if (Config.checkNoDoubleBindings)
19221920
if (ctx.settings.YnoDoubleBindings.value)
19231921
checkSymAssign(denot.symbol)

0 commit comments

Comments
 (0)