Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
scabug opened this issue Feb 7, 2012 · 2 comments
Closed
Assignees
Milestone

Comments

@scabug
Copy link

scabug commented Feb 7, 2012

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
}

@scabug
Copy link
Author

scabug commented Feb 7, 2012

Imported From: https://issues.scala-lang.org/browse/SI-5440?orig=1
Reporter: Adam Poswolsky (aposwolsky)
Affected Versions: 2.9.1

@scabug
Copy link
Author

scabug commented Jan 13, 2013

@retronym said:
This was fixed in 2.10.0, test case submitted here for 2.10.1.

scala/scala#1890

@scabug scabug closed this as completed Jan 14, 2013
@scabug scabug added this to the 2.10.1 milestone Apr 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants