diff options
author | Dmitry Petrashko <dmitry.petrashko@gmail.com> | 2015-04-02 18:16:22 +0200 |
---|---|---|
committer | Dmitry Petrashko <dmitry.petrashko@gmail.com> | 2015-04-02 18:16:22 +0200 |
commit | 5cbdf5c28b843c79616243e5f1c882d55304b6e9 (patch) | |
tree | 9e16061fbd7e67fd2f2cfdacdb24365d4216114e /src/dotty/tools/dotc/core/SymDenotations.scala | |
parent | 0f9132d6fa362e8ff5a8670afcd23f836f22dbd9 (diff) | |
download | dotty-5cbdf5c28b843c79616243e5f1c882d55304b6e9.tar.gz dotty-5cbdf5c28b843c79616243e5f1c882d55304b6e9.tar.bz2 dotty-5cbdf5c28b843c79616243e5f1c882d55304b6e9.zip |
Handle inner classes defined in suppercalls.
Diffstat (limited to 'src/dotty/tools/dotc/core/SymDenotations.scala')
-rw-r--r-- | src/dotty/tools/dotc/core/SymDenotations.scala | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/dotty/tools/dotc/core/SymDenotations.scala b/src/dotty/tools/dotc/core/SymDenotations.scala index e8008eeb3..1285d3fdd 100644 --- a/src/dotty/tools/dotc/core/SymDenotations.scala +++ b/src/dotty/tools/dotc/core/SymDenotations.scala @@ -716,6 +716,9 @@ object SymDenotations { * but in turn the enclosing class of the latter. This reflects * the context created by `Context#superCallContext`, `Contect#thisCallArgContext` * for these definitions. + * + * Note, that as packages have ClassSymbols, top level classes will have an `enclosingClass` + * with Package flag set. */ final def enclosingClass(implicit ctx: Context): Symbol = { def enclClass(sym: Symbol, skip: Boolean): Symbol = { |