diff options
author | Paul Phillips <paulp@improving.org> | 2010-01-13 22:50:40 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2010-01-13 22:50:40 +0000 |
commit | 1e828fdbf04402dc53e897f6a7201bad00388b70 (patch) | |
tree | 9f40e587fa01bdfa59fbca89adbb31e58cce45df /test | |
parent | 541dd58f4d8fec8fc2b385b2c288721e5e258915 (diff) | |
download | scala-1e828fdbf04402dc53e897f6a7201bad00388b70.tar.gz scala-1e828fdbf04402dc53e897f6a7201bad00388b70.tar.bz2 scala-1e828fdbf04402dc53e897f6a7201bad00388b70.zip |
Reverts r20311 since I'm not seeing what's goin...
Reverts r20311 since I'm not seeing what's going on in #2876 and the
optimization can wait.
Diffstat (limited to 'test')
-rw-r--r-- | test/files/neg/t2641.check | 2 | ||||
-rw-r--r-- | test/files/run/bug2876.scala | 7 |
2 files changed, 8 insertions, 1 deletions
diff --git a/test/files/neg/t2641.check b/test/files/neg/t2641.check index 07900d0796..771624e8d9 100644 --- a/test/files/neg/t2641.check +++ b/test/files/neg/t2641.check @@ -25,7 +25,7 @@ t2641.scala:27: error: illegal inheritance; superclass Any trait Sliced extends Transformed[A] with super.Sliced { ^ t2641.scala:27: error: illegal inheritance; superclass Any - is not a subclass of the superclass TraversableLike + is not a subclass of the superclass Object of the mixin trait Sliced trait Sliced extends Transformed[A] with super.Sliced { ^ diff --git a/test/files/run/bug2876.scala b/test/files/run/bug2876.scala new file mode 100644 index 0000000000..f71879ebff --- /dev/null +++ b/test/files/run/bug2876.scala @@ -0,0 +1,7 @@ +object Test +{ + def main(args: Array[String]): Unit = { + "x".view.filter(_ => true).take(1) + } +} + |