diff options
author | Martin Odersky <odersky@gmail.com> | 2006-10-20 16:44:19 +0000 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2006-10-20 16:44:19 +0000 |
commit | 42744ffda0a05b28deadb41ec92342d874af652f (patch) | |
tree | 90fc9557ae9003fdbdba13bf3cbb2d1cbe013d19 /src | |
parent | 118050a7d77441a2f13c20afac174a900593cea4 (diff) | |
download | scala-42744ffda0a05b28deadb41ec92342d874af652f.tar.gz scala-42744ffda0a05b28deadb41ec92342d874af652f.tar.bz2 scala-42744ffda0a05b28deadb41ec92342d874af652f.zip |
fixed bug780
Diffstat (limited to 'src')
-rw-r--r-- | src/compiler/scala/tools/nsc/typechecker/Contexts.scala | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/Contexts.scala b/src/compiler/scala/tools/nsc/typechecker/Contexts.scala index 1f3743c310..8357a4cb80 100644 --- a/src/compiler/scala/tools/nsc/typechecker/Contexts.scala +++ b/src/compiler/scala/tools/nsc/typechecker/Contexts.scala @@ -322,7 +322,10 @@ trait Contexts requires Analyzer { (sym hasFlag PROTECTED) && (superAccess || (pre.widen.symbol.isNonBottomSubClass(sym.owner) && - isSubClassOfEnclosing(pre.widen.symbol)))) + (isSubClassOfEnclosing(pre.widen.symbol) || phase.erasedTypes)))) + // note: phase.erasedTypes disables last test, because fater addinterfaces + // implementation classes are not in the superclass chain. If we enable the + // test, bug780 fails. } } |