Skip to content

Cannot find method IndexedSeqView.updated when running a program compiled with CC stdlib #19819

@Linyxus

Description

@Linyxus

Compiler version

main

Minimized code

object Hello extends App { println(Vector(1, 2, 3).view.updated(1, 8)) }

Steps to reproduce (assuming that the code is saved as Hello.scala):

sbt> set ThisBuild/Build.scala2Library := Build.Scala2LibraryCCTasty sbt> scala3-bootstrapped/scalac Hello.scala sbt> scala3-bootstrapped/scala Hello 

Output

Exception in thread "main" java.lang.NoSuchMethodError: 'scala.collection.View scala.collection.IndexedSeqView.updated(int, java.lang.Object)'	at Hello$.<clinit>(Hello.scala:2)	at Hello.main(Hello.scala)

Expectation

It should run.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions