We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 349f553 + a910e0a commit 1ab71c1Copy full SHA for 1ab71c1
tests/neg/i9325.scala
@@ -0,0 +1,2 @@
1
+enum Foo[T] extends java.lang.Enum[Foo[T]] { case Red extends Foo[Int]; case Blue extends Foo[String] }
2
+val res0 = (Foo.Red: Foo[?]) compareTo Foo.Blue // error: type mismatch Found (Foo.Blue : Foo[String]) Expected ?1.E
0 commit comments