aboutsummaryrefslogblamecommitdiff
path: root/tests/pos/array-overload.scala
blob: 737ea0ec735a8b14250c96688e00b68c69c3389b (plain) (tree)
1
2
3
4
5
6
7
8







                                                    
class Test {
  object A {
    def apply(x: Byte, xs: Byte*): Array[Byte] = ???
    def apply(x: Int, xs: Int*): Array[Int] = ???
  }

  val x: Array[Byte] = A.apply(1, 2)
}