Skip to content

Commit a910e0a

Browse files
committed
fix #9325: add regression test
1 parent b3f908d commit a910e0a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/neg/i9325.scala

+2
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)