Skip to content

kind-projector's placeholder syntax not working for infix type constructors #24747

@TomasMikula

Description

@TomasMikula

Compiler version

3.7.4

Minimized code

https://scastie.scala-lang.org/VJbhRJdSSaKJFBn8Yod7HA

trait ::[A, B]

def foo[F[_]] = ()

foo[::[Int, _]] // OK
foo[::[_, Int]] // OK
foo[Int :: _]   // error: Not found: type _
foo[_ :: Int]   // error: Not found: type _

Output

Not found: type _
Not found: type _

Expectation

I'd expect the infix notation work the same as the prefix notation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    itype:bugstat:needs triageEvery issue needs to have an "area" and "itype" label

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions