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

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

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

Comments

@scabug
Copy link

@scabug 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 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

Loading

@scabug
Copy link
Author

@scabug 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

Loading

@scabug scabug closed this 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
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants