diff options
author | Hubert Plociniczak <hubert.plociniczak@epfl.ch> | 2011-03-28 16:21:52 +0000 |
---|---|---|
committer | Hubert Plociniczak <hubert.plociniczak@epfl.ch> | 2011-03-28 16:21:52 +0000 |
commit | b6b0359b8a0745337a940594fcac8b7054411c12 (patch) | |
tree | 75c3341edd7e7a497a4228bc40138c4a8786b1ba /src | |
parent | f1af3e076650d2b3a788af4c7dc92c9859e9fec7 (diff) | |
download | scala-b6b0359b8a0745337a940594fcac8b7054411c12.tar.gz scala-b6b0359b8a0745337a940594fcac8b7054411c12.tar.bz2 scala-b6b0359b8a0745337a940594fcac8b7054411c12.zip |
Don't analyse symbols with error types.
Diffstat (limited to 'src')
-rw-r--r-- | src/compiler/scala/tools/nsc/dependencies/DependencyAnalysis.scala | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/compiler/scala/tools/nsc/dependencies/DependencyAnalysis.scala b/src/compiler/scala/tools/nsc/dependencies/DependencyAnalysis.scala index 3e8c9cfea7..c7d1cc58a2 100644 --- a/src/compiler/scala/tools/nsc/dependencies/DependencyAnalysis.scala +++ b/src/compiler/scala/tools/nsc/dependencies/DependencyAnalysis.scala @@ -176,6 +176,7 @@ trait DependencyAnalysis extends SubComponent with Files { && (tree.symbol != NoSymbol) && (!tree.symbol.isPackage) && (!tree.symbol.isJavaDefined) + && (!tree.symbol.tpe.isError) && ((tree.symbol.sourceFile eq null) || (tree.symbol.sourceFile.path != file.path)) && (!tree.symbol.isClassConstructor)) { |