diff options
author | Martin Odersky <odersky@gmail.com> | 2013-03-14 16:56:09 +0100 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2013-03-14 16:56:09 +0100 |
commit | 016a60cda879f9c326d3f732fe33ec070f998999 (patch) | |
tree | 4ae38c61c39cf0060de3890e26b2f1464334eeb5 /src/dotty/tools/dotc/core/SymDenotations.scala | |
parent | d2767983aa4aeb9caccfd56273a1ac93e576bb4a (diff) | |
download | dotty-016a60cda879f9c326d3f732fe33ec070f998999.tar.gz dotty-016a60cda879f9c326d3f732fe33ec070f998999.tar.bz2 dotty-016a60cda879f9c326d3f732fe33ec070f998999.zip |
Improvements to stub handling.
Diffstat (limited to 'src/dotty/tools/dotc/core/SymDenotations.scala')
-rw-r--r-- | src/dotty/tools/dotc/core/SymDenotations.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dotty/tools/dotc/core/SymDenotations.scala b/src/dotty/tools/dotc/core/SymDenotations.scala index 029b6035b..578fa325b 100644 --- a/src/dotty/tools/dotc/core/SymDenotations.scala +++ b/src/dotty/tools/dotc/core/SymDenotations.scala @@ -145,7 +145,7 @@ object SymDenotations { /** The symbols defined in this class when the class is not yet completed. * @pre: this is a class */ - protected final def preCompleteDecls: Scope = _info match { + protected[core] final def preCompleteDecls: Scope = _info match { case cinfo: LazyClassInfo => cinfo.decls case cinfo: ClassInfo => cinfo.decls } @@ -990,7 +990,7 @@ object SymDenotations { |in ${denot.owner.showKind} ${denot.owner.showFullName} which is not available. |It may be completely missing from the current classpath, or the version on |the classpath might be incompatible with the version used when compiling $src.""".stripMargin) - if (cctx.debug) (new Throwable).printStackTrace + if (cctx.debug) throw new Error() initializeToDefaults(denot) } } |