diff options
author | Hubert Plociniczak <hubert.plociniczak@epfl.ch> | 2010-02-01 16:16:11 +0000 |
---|---|---|
committer | Hubert Plociniczak <hubert.plociniczak@epfl.ch> | 2010-02-01 16:16:11 +0000 |
commit | 490ed74ff8e5c70789cde74646fd6c2b7abbfc21 (patch) | |
tree | b699a68c26de32cf963461661794763a7c6ca049 /src/compiler/scala/tools/nsc/dependencies/Changes.scala | |
parent | 131b264b25c2e2d74b63b0f5859ead1a3581c046 (diff) | |
download | scala-490ed74ff8e5c70789cde74646fd6c2b7abbfc21.tar.gz scala-490ed74ff8e5c70789cde74646fd6c2b7abbfc21.tar.bz2 scala-490ed74ff8e5c70789cde74646fd6c2b7abbfc21.zip |
Exclude anonymous function classes from the def...
Exclude anonymous function classes from the definitions in dependency
analysis. This was causing spurious errors in for example Global.scala
and Interpreter.scala because of fresh names numbering. Also cleanup up
some code. No review.
Diffstat (limited to 'src/compiler/scala/tools/nsc/dependencies/Changes.scala')
-rw-r--r-- | src/compiler/scala/tools/nsc/dependencies/Changes.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/dependencies/Changes.scala b/src/compiler/scala/tools/nsc/dependencies/Changes.scala index ddab003752..a1250dc40f 100644 --- a/src/compiler/scala/tools/nsc/dependencies/Changes.scala +++ b/src/compiler/scala/tools/nsc/dependencies/Changes.scala @@ -101,7 +101,7 @@ abstract class Changes { case (mt1 @ MethodType(params1, res1), mt2 @ MethodType(params2, res2)) => // new dependent types: probably fix this, use substSym as done for PolyType (sameTypes(tp1.paramTypes, tp2.paramTypes) && - (tp1.params corresponds tp2.params)((t1, t2) => sameSymbol(t1, t2) && sameFlags(t1, t2)) && // @PP: corresponds + (tp1.params corresponds tp2.params)((t1, t2) => sameSymbol(t1, t2) && sameFlags(t1, t2)) && sameType(res1, res2) && mt1.isImplicit == mt2.isImplicit) |