diff options
author | Aleksandar Pokopec <aleksandar.prokopec@epfl.ch> | 2010-07-05 09:25:39 +0000 |
---|---|---|
committer | Aleksandar Pokopec <aleksandar.prokopec@epfl.ch> | 2010-07-05 09:25:39 +0000 |
commit | 4db294103175cc0789ac63168c7308b3542ee184 (patch) | |
tree | eaab42d4a71271283237211b9003d5a797148a61 /test/files/run/t3580.scala | |
parent | 302b1df81fcac0648defe7a0dd651f6eba063c58 (diff) | |
download | scala-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.scala | 17 |
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 + } + +} |