File tree Expand file tree Collapse file tree 1 file changed +1
-7
lines changed
compiler/src/dotty/tools/dotc/core Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -1810,13 +1810,7 @@ object SymDenotations {
1810
1810
*/
1811
1811
def enter (sym : Symbol , scope : Scope = EmptyScope )(implicit ctx : Context ): Unit = {
1812
1812
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
1820
1814
case _ => unforcedDecls.openForMutations
1821
1815
}
1822
1816
if (proceedWithEnter(sym, mscope)) {
You can’t perform that action at this time.
0 commit comments