Skip to content

Can't define an enum with higher kinded types #3976

Closed
@halcat0x15a

Description

@halcat0x15a

I get an error in Dotty 0.6.0-RC1.

scala> enum class Hoge[F[_]]
1 |enum class Hoge[F[_]]
  |^
  |Type argument F$1 has not the same kind as its bound

I guessed that it failed to derive an Eq instance.

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