aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/core/SymDenotations.scala
diff options
context:
space:
mode:
authorDmitry Petrashko <dmitry.petrashko@gmail.com>2015-05-13 15:49:51 +0200
committerDmitry Petrashko <dmitry.petrashko@gmail.com>2015-05-13 15:49:51 +0200
commit0064286422fedefab88247f21ec48f68e95e001a (patch)
tree721cf65429863e4f84dfb50f054b33c720875153 /src/dotty/tools/dotc/core/SymDenotations.scala
parent9c55450be3514fd3c4741dd3a618ad24606792e5 (diff)
downloaddotty-0064286422fedefab88247f21ec48f68e95e001a.tar.gz
dotty-0064286422fedefab88247f21ec48f68e95e001a.tar.bz2
dotty-0064286422fedefab88247f21ec48f68e95e001a.zip
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
Diffstat (limited to 'src/dotty/tools/dotc/core/SymDenotations.scala')
-rw-r--r--src/dotty/tools/dotc/core/SymDenotations.scala2
1 files changed, 1 insertions, 1 deletions
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
}