Skip to content

Regression: prepended SeqView should still be a SeqView #11159

Open
@Atry

Description

@Atry

1 +: 2 +: Nil.view compiles in Scala 2.12:

Welcome to Scala 2.12.6 (GraalVM 1.0.0-rc2, Java 1.8.0_171).
Type in expressions for evaluation. Or try :help.

scala> 1 +: 2 +: Nil.view
res0: scala.collection.SeqView[Int,Seq[_]] = SeqViewAA(...)

but not in Scala 2.13.0-M5

Welcome to Scala 2.13.0-M5 (GraalVM 1.0.0-rc2, Java 1.8.0_171).
Type in expressions for evaluation. Or try :help.

scala> 1 +: 2 +: Nil.view
         ^
       error: value +: is not a member of scala.collection.View[Int]

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions