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 /test/files/buildmanager/freshnames/A.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 'test/files/buildmanager/freshnames/A.scala')
-rw-r--r-- | test/files/buildmanager/freshnames/A.scala | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/files/buildmanager/freshnames/A.scala b/test/files/buildmanager/freshnames/A.scala new file mode 100644 index 0000000000..88ea44b3c7 --- /dev/null +++ b/test/files/buildmanager/freshnames/A.scala @@ -0,0 +1,16 @@ +abstract class A { + + var t: List[B] + + def foo(n: String): Option[B] = { + t.reverse find (_.names contains n) + } + + def bar(n: Int): Option[B] = { + t.reverse find (_.names contains n) + } +} + +//class A +case class B(names: List[String]) + |