diff options
author | Martin Odersky <odersky@gmail.com> | 2008-04-07 17:27:36 +0000 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2008-04-07 17:27:36 +0000 |
commit | f9e8fbe0af78e66f2180f00e532086e68da6476e (patch) | |
tree | 1f6df2ec66eb952383560786b8502742d0e83214 | |
parent | f6c4b03cb2f8d3dfe44a1a147ac698f232ad302c (diff) | |
download | scala-f9e8fbe0af78e66f2180f00e532086e68da6476e.tar.gz scala-f9e8fbe0af78e66f2180f00e532086e68da6476e.tar.bz2 scala-f9e8fbe0af78e66f2180f00e532086e68da6476e.zip |
improved isCoDefined
-rw-r--r-- | src/compiler/scala/tools/nsc/symtab/Symbols.scala | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/compiler/scala/tools/nsc/symtab/Symbols.scala b/src/compiler/scala/tools/nsc/symtab/Symbols.scala index 5d34fb12be..7a12dcee2f 100644 --- a/src/compiler/scala/tools/nsc/symtab/Symbols.scala +++ b/src/compiler/scala/tools/nsc/symtab/Symbols.scala @@ -886,10 +886,8 @@ trait Symbols { !this.owner.isPackageClass || (this.sourceFile eq null) || (that.sourceFile eq null) || - (this.sourceFile eq that.sourceFile) - if (!res) { - println("strange linked: "+this+" "+this.locationString+";"+this.sourceFile+"/"+that+that.locationString+";"+that.sourceFile+";"+that.moduleClass.sourceFile) - } + (this.sourceFile eq that.sourceFile) || + (this.sourceFile == that.sourceFile) res } |