summaryrefslogtreecommitdiff
path: root/test/files/run/t3580.scala
blob: ac9f81ab9ee2acd1f035620efd72a2193f9945ee (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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
  }
  
}