diff options
author | Paul Phillips <paulp@improving.org> | 2009-02-24 18:41:14 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2009-02-24 18:41:14 +0000 |
commit | 5c2635fb90c44dee3a76ae1346845aab7748d738 (patch) | |
tree | 89ae4577203d33fee32eb8393df94778cdfa2cee /src | |
parent | 0f81e1686bef598c5353a7187a332f3008492f29 (diff) | |
download | scala-5c2635fb90c44dee3a76ae1346845aab7748d738.tar.gz scala-5c2635fb90c44dee3a76ae1346845aab7748d738.tar.bz2 scala-5c2635fb90c44dee3a76ae1346845aab7748d738.zip |
Fix and test case for #1747.
Diffstat (limited to 'src')
-rw-r--r-- | src/compiler/scala/tools/nsc/backend/jvm/GenJVM.scala | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/compiler/scala/tools/nsc/backend/jvm/GenJVM.scala b/src/compiler/scala/tools/nsc/backend/jvm/GenJVM.scala index 76aec33069..df655f076c 100644 --- a/src/compiler/scala/tools/nsc/backend/jvm/GenJVM.scala +++ b/src/compiler/scala/tools/nsc/backend/jvm/GenJVM.scala @@ -736,6 +736,7 @@ abstract class GenJVM extends SubComponent { && !m.isConstructor && !m.isStaticMember && !(m.owner == definitions.AnyClass) + && !module.isSubClass(module.linkedClassOfModule) && !conflictsIn(definitions.ObjectClass, m.name) && !conflictsIn(module.linkedClassOfModule, m.name)) |