Skip to content

Missing implicit argument in ListBuffer.unzip #2948

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

Closed
nicolasstucki opened this issue Aug 3, 2017 · 1 comment
Closed

Missing implicit argument in ListBuffer.unzip #2948

nicolasstucki opened this issue Aug 3, 2017 · 1 comment

Comments

@nicolasstucki
Copy link
Contributor

For some reason the implicit asPair: A => (A1, A2) parameter of the unzip is not found or not inserted. As a consequence unzip is treated as a partially applied function. Note that also happens for ArrayBuffer but not for List and Array.

import scala.collection.mutable.ListBuffer
class Foo {
  val zipped: ListBuffer[(String, Int)] = null
  val unzipped: (ListBuffer[String], ListBuffer[Int]) = zipped.unzip
}
5 |  val unzipped: (ListBuffer[String], ListBuffer[Int]) = zipped.unzip
  |                                                                    ^
  |found:    ((String, Int)) => (Any, Any) => (scala.collection.Traversable[Any], 
  |  scala.collection.Traversable[Any]
  |)
  |required: (collection.mutable.ListBuffer[String], collection.mutable.ListBuffer[Int])
  |
@nicolasstucki
Copy link
Contributor Author

Also on WrappedArray

odersky added a commit that referenced this issue Aug 16, 2017
Fix #2948: Use symbol's info when mapping inherited denotations
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

1 participant