Skip to content

Can't compare Range with Nil #2567

Closed
Closed
@odersky

Description

@odersky

In

(1 until 10) == Nil 

we now get the error:

Values of types scala.collection.immutable.Range and scala.collection.immutable.Nil cannot be compared with == or !=

This happens only if we compare Range with a Seq[Nothing]. We should figure out why.
Test case in run/t3529.scala.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions