Skip to content

Commit 1ab71c1

Browse files
Merge pull request #9723 from dotty-staging/fix-9325
fix #9325: add regression test
2 parents 349f553 + a910e0a commit 1ab71c1

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)