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

non-exhaustive match in ImmutableArray #468

Closed
larsrh opened this issue Aug 11, 2013 · 2 comments
Closed

non-exhaustive match in ImmutableArray #468

larsrh opened this issue Aug 11, 2013 · 2 comments
Milestone

Comments

@larsrh
Copy link
Contributor

larsrh commented Aug 11, 2013

implicit def wrapArray[A](immArray: ImmutableArray[A]): WrappedImmutableArray[A] = {
  import ImmutableArray.{WrappedImmutableArray => IAO}
  immArray match {
    case a: StringArray => new IAO.ofStringArray(a)
    case a: ofRef[_] => new IAO.ofRef(a)
    case a: ofByte => new IAO.ofByte(a)
    case a: ofShort => new IAO.ofShort(a)
    case a: ofChar => new IAO.ofChar(a)
    case a: ofInt => new IAO.ofInt(a)
    case a: ofLong => new IAO.ofLong(a)
    case a: ofFloat => new IAO.ofFloat(a)
    case a: ofDouble => new IAO.ofDouble(a)
    case a: ofBoolean => new IAO.ofBoolean(a)
    case a: ofUnit => new IAO.ofUnit(a)
  }
}
[warn] match may not be exhaustive.
[warn] It would fail on the following inputs: ImmutableArray1(), StringArray()
[warn]     immArray match {
[warn]     ^
@xuwei-k
Copy link
Member

xuwei-k commented Aug 11, 2013

@xuwei-k
Copy link
Member

xuwei-k commented Aug 22, 2013

#480

@xuwei-k xuwei-k closed this as completed Aug 22, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants