-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add more methods in
SeqViewOps
(#19993)
fixes #19988 The issue is caused by the change of class hierarchy in Scala 2 library CC: `SeqView` no longer extends `SeqOps`. To fix this we have to copy methods from `SeqOps` to `SeqViewOps`. Similar to what is done in #19873.
- Loading branch information
Showing
3 changed files
with
13 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import collection.IndexedSeqView | ||
object Hello extends App { | ||
def foo(view: IndexedSeqView[Int]): Unit = | ||
val x1 = 1 +: view | ||
val x2 = view :+ 1 | ||
} | ||
|