We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
3.5.0 3.6.1
enum Foo[T <: AnyKind]: case Bar extends Foo[List] case Baz extends Foo[Map]
Found: (Playground.Foo.Bar : Playground.Foo[List]) | (Playground.Foo.Baz : Playground.Foo[Map]) Required: Playground.Foo[? >: List[?] & Map[?, ?] <: List[?] | Map[?, ?]]
https://scastie.scala-lang.org/A8kJXNH1QMSMPOQe6DmCJg
It should compile, like this equivalent sealed family:
sealed
// compiles sealed trait Foo[T <: AnyKind] case object Bar extends Foo[List] case object Baz extends Foo[Map]
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Compiler version
3.5.0
3.6.1
Minimized code
Output
https://scastie.scala-lang.org/A8kJXNH1QMSMPOQe6DmCJg
Expectation
It should compile, like this equivalent
sealed
family:The text was updated successfully, but these errors were encountered: