From 0064286422fedefab88247f21ec48f68e95e001a Mon Sep 17 00:00:00 2001 From: Dmitry Petrashko Date: Wed, 13 May 2015 15:49:51 +0200 Subject: Relax restriction on entering symbols into mutable scopes. The restriction here is used to make sure that the latest scope is being updated. Previous was to harsh and allowed only typer to call normalizeToClassRefs --- src/dotty/tools/dotc/core/SymDenotations.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dotty/tools/dotc/core/SymDenotations.scala b/src/dotty/tools/dotc/core/SymDenotations.scala index 1ad718c29..5d0b6470e 100644 --- a/src/dotty/tools/dotc/core/SymDenotations.scala +++ b/src/dotty/tools/dotc/core/SymDenotations.scala @@ -1346,7 +1346,7 @@ object SymDenotations { // than this is a scope that will eventually become decls of this symbol. // And this should only happen if this is first time the scope of symbol // is computed, ie symbol yet has no future. - assert(this.nextInRun == this) + assert(this.nextInRun.validFor.code <= this.validFor.code) scope case _ => unforcedDecls.openForMutations } -- cgit v1.2.3