Skip to content

Commit a3a3cf6

Browse files
authored
Merge pull request #8815 from dotty-staging/fix-#8729
Fix #8729: Drop failing assertion in `enter`
2 parents 2466d97 + b9c72b2 commit a3a3cf6

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

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

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1810,13 +1810,7 @@ object SymDenotations {
18101810
*/
18111811
def enter(sym: Symbol, scope: Scope = EmptyScope)(implicit ctx: Context): Unit = {
18121812
val mscope = scope match {
1813-
case scope: MutableScope =>
1814-
// if enter gets a scope as an argument,
1815-
// than this is a scope that will eventually become decls of this symbol.
1816-
// And this should only happen if this is first time the scope of symbol
1817-
// is computed, ie symbol yet has no future.
1818-
assert(this.nextInRun.validFor.code <= this.validFor.code)
1819-
scope
1813+
case scope: MutableScope => scope
18201814
case _ => unforcedDecls.openForMutations
18211815
}
18221816
if (proceedWithEnter(sym, mscope)) {

0 commit comments

Comments
 (0)