Skip to content

Type bounds are not shown in type errors #9971

Closed
@IndiscriminateCoding

Description

@IndiscriminateCoding

Minimized code

trait G[F[_]]

def f(x: G[List]) = ???

def a: G[[A <: Int] =>> List[A]] = ???
def b = f(a)

Output

Found:    G[List]
Required: G[List]

Expectation

I expect type bound A <: Int to be shown in error messages so it wouldn't be so confusing

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions