Skip to content

wrong "fruitless type test" warning #11705

Open
@scf37

Description

@scf37

scalac seems to think that function argument type can not implement local trait but that is not true.

See an example:
https://scastie.scala-lang.org/UvXkI2YiRJi8uXePPp1cHg

Reproduced on 2.12.8, 2.13.0

Metadata

Metadata

Assignees

No one assigned

    Labels

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

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions