summaryrefslogblamecommitdiff
path: root/test/files/neg/t5821.scala
blob: 4af0a2bf7f26b1010671533f3f15fc3511f4cf50 (plain) (tree)
1
2
3
4
5
6
7
8







                                                                               
import SthImportant._

class Bar

class Foo2 {
  type Sth = Array[Bar]
  def foo(xs: Sth): Bar = if ((xs eq null) || (xs.length == 0)) null else xs(0)
}