-
Notifications
You must be signed in to change notification settings - Fork 87
Closed
Labels
backportBackport of changes from 2.13 to methods/classes already presentBackport of changes from 2.13 to methods/classes already presentbugSomething isn't workingSomething isn't workinghelp wantedExtra attention is neededExtra attention is neededlibraryRelated to compat library code (not rewrite rules)Related to compat library code (not rewrite rules)
Description
not immutable 😇
- https://github.com/scala/scala/blob/v2.13.4/src/library/scala/collection/immutable/ArraySeq.scala#L475-L513
- https://github.com/scala/scala-collection-compat/blob/v2.4.0/compat/src/main/scala-2.11_2.12/scala/collection/compat/immutable/ArraySeq.scala#L177
Welcome to Scala 2.13.4 (OpenJDK 64-Bit Server VM, Java 1.8.0_275).
Type in expressions for evaluation. Or try :help.
scala> val a = new scala.collection.immutable.ArraySeq.ofInt(Array(1, 2, 3))
val a: collection.immutable.ArraySeq.ofInt = ArraySeq(1, 2, 3)
scala> a(0) = 10
^
error: value update is not a member of collection.immutable.ArraySeq.ofInt
did you mean updated?
Welcome to Scala 2.12.12 (OpenJDK 64-Bit Server VM, Java 1.8.0_275).
Type in expressions for evaluation. Or try :help.
scala> import scala.collection.compat.immutable.ArraySeq
import scala.collection.compat.immutable.ArraySeq
scala> val a = new ArraySeq.ofInt(Array(1, 2, 3))
a: scala.collection.compat.immutable.ArraySeq.ofInt = ArraySeq(1, 2, 3)
scala> a(0) = 10
scala> a
res1: scala.collection.compat.immutable.ArraySeq.ofInt = ArraySeq(10, 2, 3)
NthPortal
Metadata
Metadata
Assignees
Labels
backportBackport of changes from 2.13 to methods/classes already presentBackport of changes from 2.13 to methods/classes already presentbugSomething isn't workingSomething isn't workinghelp wantedExtra attention is neededExtra attention is neededlibraryRelated to compat library code (not rewrite rules)Related to compat library code (not rewrite rules)