diff options
author | Martin Odersky <odersky@gmail.com> | 2006-01-31 13:02:54 +0000 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2006-01-31 13:02:54 +0000 |
commit | dc4e5a3fbd5e524c57cc9651cc4b7043ea110150 (patch) | |
tree | 13f20b3447f2840bdd16bbce0535a6139088d3d2 /src | |
parent | 55baf42acba7e9b848403eb0b5aa669c2f1fcc7d (diff) | |
download | scala-dc4e5a3fbd5e524c57cc9651cc4b7043ea110150.tar.gz scala-dc4e5a3fbd5e524c57cc9651cc4b7043ea110150.tar.bz2 scala-dc4e5a3fbd5e524c57cc9651cc4b7043ea110150.zip |
Diffstat (limited to 'src')
-rw-r--r-- | src/compiler/scala/tools/nsc/typechecker/Typers.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/Typers.scala b/src/compiler/scala/tools/nsc/typechecker/Typers.scala index c3abb76e64..aff80d4812 100644 --- a/src/compiler/scala/tools/nsc/typechecker/Typers.scala +++ b/src/compiler/scala/tools/nsc/typechecker/Typers.scala @@ -553,7 +553,7 @@ mixin class Typers requires Analyzer { else if (psym.isSealed && !phase.erasedTypes) { // are we in same scope as base type definition? val e = defscope.lookupEntry(psym.name) - if (!(e != null && e.sym == psym && e.owner == defscope)) { + if (c.owner.isPackageClass || !(e != null && e.sym == psym && e.owner == defscope)) { // we are not within same statement sequence var c = context while (c != NoContext && c.owner != psym) c = c.outer.enclClass |