Seite 1 von 1

Assignment 6, task 2 not compiling in Scala 2.13

Verfasst: 4. Dez 2019 18:28
von KimB
Since 2.13 (which is indicated in build.sbt), scala.collection.mutable.ArraySeq is abstract and can't be instanciated directly. The code compiles when lowering the version to 2.12. A working alternative seems to be:

Code: Alles auswählen

val memory = new scala.collection.mutable.ArraySeq.ofRef[Val](new Array(maxSize))
which can probably still be simplified, but at least seems to compile.

Re: Assignment 6, task 2 not compiling in Scala 2.13

Verfasst: 5. Dez 2019 12:08
von mirko-koehler
Thanks. The code is fixed now. You can also use the version that you proposed here.