Skip to content

unification should consider all parents #6948

Open
@scabug

Description

@scabug
val rand = new scala.util.Random()

This works fine

val a = rand.shuffle(0 to 5)

But this gives an error:

val a = rand.shuffle(0 until 5)
<console>:9: error: Cannot construct a collection of type scala.collection.AbstractSeq[Int] with elements of type Int based on a collection of type scala.collection.AbstractSeq[Int].
       val a = rand.shuffle(0 until 5)

Metadata

Metadata

Assignees

No one assigned

    Labels

    fixed in Scala 3This issue does not exist in the Scala 3 compiler (https://github.com/lampepfl/dotty/)infer

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions