summaryrefslogtreecommitdiff
path: root/test/files/run/t3580.scala
diff options
context:
space:
mode:
authorAleksandar Pokopec <aleksandar.prokopec@epfl.ch>2010-07-05 09:25:39 +0000
committerAleksandar Pokopec <aleksandar.prokopec@epfl.ch>2010-07-05 09:25:39 +0000
commit4db294103175cc0789ac63168c7308b3542ee184 (patch)
treeeaab42d4a71271283237211b9003d5a797148a61 /test/files/run/t3580.scala
parent302b1df81fcac0648defe7a0dd651f6eba063c58 (diff)
downloadscala-4db294103175cc0789ac63168c7308b3542ee184.tar.gz
scala-4db294103175cc0789ac63168c7308b3542ee184.tar.bz2
scala-4db294103175cc0789ac63168c7308b3542ee184.zip
Fixes #3580. Review by extempore.
Diffstat (limited to 'test/files/run/t3580.scala')
-rw-r--r--test/files/run/t3580.scala17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/files/run/t3580.scala b/test/files/run/t3580.scala
new file mode 100644
index 0000000000..50ff6c4551
--- /dev/null
+++ b/test/files/run/t3580.scala
@@ -0,0 +1,17 @@
+
+
+
+
+
+object Test {
+
+ class Empty extends Traversable[Nothing] {
+ def foreach[U](f: Nothing => U) {}
+ }
+
+ def main(args: Array[String]) {
+ val t = new Empty
+ t.toStream
+ }
+
+}