Skip to content

Missing non-exhaustive warning when matching against a pair of lists. #5440

@scabug

Description

@scabug

The following should return a match non-exhaustive warning, but does not:

def merge(list1: List[Long], list2: List[Long]): Boolean = (list1, list2) match {
case (hd1::, hd2::) => true
case (Nil, Nil) => true
}

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions