blob: 53bd798219d9307d354d702ff89310cdec1ae7be (
plain) (
blame)
1
2
3
4
5
6
|
trait ConfigurableDefault[@specialized V] {
def fillArray(arr: Array[V], v: V) = (arr: Any) match {
case x: Array[Int] => null
case x: Array[Long] => v.asInstanceOf[Long]
}
}
|