Skip to content

interaction of opaque types and type lambdas #9735

@IndiscriminateCoding

Description

@IndiscriminateCoding

Minimized code

trait Two[A, B]

opaque type U[A] = [B] =>> Two[A, B] // compiles fine
opaque type T[A] = [B] =>> String // error :(

Output

package object main$package cannot be instantiated since it has a member T with possibly conflicting bounds LazyRef([A] =>> [B] =>> String) <: ... <: [X0] =>> String

Expectation

Not sure if the second definition is correct, but error message is confusing anyway

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions