Skip to content

-language:strictEquality doesn't check contains parameter type #20509

Open
@mohe2015

Description

@mohe2015

Compiler version

3.5.0-RC1
with -language:strictEquality enabled

Minimized code

@main def hello(): Unit =
  println(Seq[String]().contains(1))

Output

false

Expectation

I would expect it to not compile because of strict equality and mismatched types.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions