From 4db294103175cc0789ac63168c7308b3542ee184 Mon Sep 17 00:00:00 2001 From: Aleksandar Pokopec Date: Mon, 5 Jul 2010 09:25:39 +0000 Subject: Fixes #3580. Review by extempore. --- test/files/run/t3580.scala | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 test/files/run/t3580.scala (limited to 'test/files/run/t3580.scala') 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 + } + +} -- cgit v1.2.3