diff options
author | Aleksandar Prokopec <axel22@gmail.com> | 2012-06-27 14:40:39 +0200 |
---|---|---|
committer | Aleksandar Prokopec <axel22@gmail.com> | 2012-06-27 14:40:39 +0200 |
commit | ba542ba60836cd89e89ac1e9efbc46be14d766f3 (patch) | |
tree | aaed7ebc8d6bed7d8fbefeb23c43741747b5f5c5 /src/library/scala/collection/SeqViewLike.scala | |
parent | 161b58358ea8685aea26cdfd2fc2d689ce7414e7 (diff) | |
download | scala-ba542ba60836cd89e89ac1e9efbc46be14d766f3.tar.gz scala-ba542ba60836cd89e89ac1e9efbc46be14d766f3.tar.bz2 scala-ba542ba60836cd89e89ac1e9efbc46be14d766f3.zip |
Fix SI-5971.
When using `AbstractTransformed` abstract inner class in views in order
to force generating bridges, one must take care to push the corresponding
collection trait (such as `Iterable` or `Seq`) as far as possible to the
left in the linearization order -- otherwise, overridden methods from these
traits can override the already overridden methods in view. This was the
case with `takeWhile`.
Diffstat (limited to 'src/library/scala/collection/SeqViewLike.scala')
-rw-r--r-- | src/library/scala/collection/SeqViewLike.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/library/scala/collection/SeqViewLike.scala b/src/library/scala/collection/SeqViewLike.scala index f64045c9f6..73f5dda11c 100644 --- a/src/library/scala/collection/SeqViewLike.scala +++ b/src/library/scala/collection/SeqViewLike.scala @@ -40,7 +40,7 @@ trait SeqViewLike[+A, } /** Explicit instantiation of the `Transformed` trait to reduce class file size in subclasses. */ - private[collection] abstract class AbstractTransformed[+B] extends super[IterableViewLike].AbstractTransformed[B] with Transformed[B] + private[collection] abstract class AbstractTransformed[+B] extends Seq[B] with super[IterableViewLike].Transformed[B] with Transformed[B] trait EmptyView extends Transformed[Nothing] with super[IterableViewLike].EmptyView with super[GenSeqViewLike].EmptyView |