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

Support wrapper inheritance #10

Open
alexeyr opened this issue Oct 12, 2015 · 0 comments
Open

Support wrapper inheritance #10

alexeyr opened this issue Oct 12, 2015 · 0 comments

Comments

@alexeyr
Copy link

alexeyr commented Oct 12, 2015

Currently we have

 def arr: Rep[WArray[scala.Tuple2[A, B]]] = WPredef.genericArrayOps[A](PairCol.this.as.arr).zip[A, B, WArray[scala.Tuple2[A, B]]](/*WPredef.genericWrapArray[B](PairCol.this.bs.arr)*/???)(WArray.canBuildFrom[scala.Tuple2[A, B]](((element[scala.Tuple2[A, B]]): Elem[scala.Tuple2[A, B]])).asRep[WCanBuildFrom[WArray[A], scala.Tuple2[A, B], WArray[scala.Tuple2[A, B]]]]);

in https://github.com/scalan/scalanizer-demo/blob/0a8ca8e436b377805b96ef70ecb1c2035d9121e8/src/main/scala/scalanizer/collections/impl/ColsImpl.scala#L478 because the commented out version doesn't compile: WWrappedArray doesn't extend WGenIterable. If we have two wrappers of a subtype and a supertype (possibly indirectly) the subtype wrapper should extend the supertype wrapper.

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

1 participant