Skip to content

Commit 484e97a

Browse files
committed
Try to bypass separation check in case body
1 parent e0256bd commit 484e97a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

scala2-library-cc/src/scala/collection/View.scala

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,9 @@ object View extends IterableFactory[View] {
152152
def apply[A](underlying: Iterable[A]^, p: A => Boolean, isFlipped: Boolean): Filter[A]^{underlying, p} =
153153
underlying match {
154154
case filter: Filter[A] if filter.isFlipped == isFlipped =>
155-
new Filter(filter.underlying, a => filter.p(a) && p(a), isFlipped)
156-
.asInstanceOf[Filter[A]^{underlying, p}]
155+
unsafeAssumeSeparate:
156+
new Filter(filter.underlying, a => filter.p(a) && p(a), isFlipped)
157+
.asInstanceOf[Filter[A]^{underlying, p}]
157158
// !!! asInstanceOf needed once paths were added, see path-patmat-should-be-pos.scala for minimization
158159
//case filter: Filter[A]^{underlying} if filter.isFlipped == isFlipped =>
159160
// unsafeAssumeSeparate:

0 commit comments

Comments
 (0)