diff options
Diffstat (limited to 'test/files')
-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 + } + +} |