aboutsummaryrefslogtreecommitdiff
path: root/tests/patmat/t5440.scala
blob: 6721b0562466b601c8f7e6ea1695650c091539c8 (plain) (blame)
1
2
3
4
5
6
object Test {
  def merge(list1: List[Long], list2: List[Long]): Boolean = (list1, list2) match {
    case (hd1::_, hd2::_) => true
    case (Nil, Nil) => true
  }
}