aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDmitry Petrashko <dmitry.petrashko@gmail.com>2015-03-30 17:01:43 +0200
committerDmitry Petrashko <dmitry.petrashko@gmail.com>2015-03-30 17:01:43 +0200
commitfdc92a6ca043bd97d2e27863599d893df94268e1 (patch)
tree8ef81394c846936d204ea9fc9824e7312ed259cf /src
parente907c78b134066260e68cc25f5adce8338f59ef4 (diff)
downloaddotty-fdc92a6ca043bd97d2e27863599d893df94268e1.tar.gz
dotty-fdc92a6ca043bd97d2e27863599d893df94268e1.tar.bz2
dotty-fdc92a6ca043bd97d2e27863599d893df94268e1.zip
Allow to enter private symbols into Frozen scopes.
As private symbols aren't inherited, this does not break caching.
Diffstat (limited to 'src')
-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 c8773d9e8..0ee633861 100644
--- a/src/dotty/tools/dotc/core/SymDenotations.scala
+++ b/src/dotty/tools/dotc/core/SymDenotations.scala
@@ -1307,7 +1307,7 @@ object SymDenotations {
/** Enter a symbol in given `scope` without potentially replacing the old copy. */
def enterNoReplace(sym: Symbol, scope: MutableScope)(implicit ctx: Context): Unit = {
- require(!(this is Frozen))
+ require((sym.denot.flagsUNSAFE is Private) || !(this is Frozen))
scope.enter(sym)
if (myMemberFingerPrint != FingerPrint.unknown)