diff options
author | Martin Odersky <odersky@gmail.com> | 2006-09-20 16:28:04 +0000 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2006-09-20 16:28:04 +0000 |
commit | 0e61f9c37e37e8338178b144b9294cb085100289 (patch) | |
tree | e1e6b4f9728c0491c51beab7254505f745a634ca /src/compiler/scala/tools/nsc/typechecker/Namers.scala | |
parent | bc14c4aa87d8df3569785fa77fe67693c57cf6c7 (diff) | |
download | scala-0e61f9c37e37e8338178b144b9294cb085100289.tar.gz scala-0e61f9c37e37e8338178b144b9294cb085100289.tar.bz2 scala-0e61f9c37e37e8338178b144b9294cb085100289.zip |
fixed bug724
Diffstat (limited to 'src/compiler/scala/tools/nsc/typechecker/Namers.scala')
-rw-r--r-- | src/compiler/scala/tools/nsc/typechecker/Namers.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/Namers.scala b/src/compiler/scala/tools/nsc/typechecker/Namers.scala index e7e6a946a4..25b30c9c35 100644 --- a/src/compiler/scala/tools/nsc/typechecker/Namers.scala +++ b/src/compiler/scala/tools/nsc/typechecker/Namers.scala @@ -516,7 +516,7 @@ trait Namers requires Analyzer { val base = expr1.tpe typer.checkStable(expr1) def checkNotRedundant(pos: PositionType, from: Name, to: Name): boolean = { - if (!base.symbol.isPackage && base.member(from) != NoSymbol) { + if (!tree.symbol.hasFlag(SYNTHETIC) && base.member(from) != NoSymbol) { val e = context.scope.lookupEntry(to) def warnRedundant(sym: Symbol) = context.unit.warning(pos, "imported `"+to+ |