We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
ImmutableArray
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] ^
The text was updated successfully, but these errors were encountered:
http://stackoverflow.com/a/18173547/605582
Sorry, something went wrong.
#480
No branches or pull requests
The text was updated successfully, but these errors were encountered: