Skip to content

Commit 3914f99

Browse files
Fix #4376: Add regression test
1 parent a7b67c4 commit 3914f99

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/neg/4376.scala

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
object App {
2+
type Id[A] >: A <: A
3+
4+
val a: Array[_ >: Id[_ <: Int]] =
5+
(Array.ofDim[String](1) : Array[_ >: Id[Nothing]]) // error
6+
}

0 commit comments

Comments
 (0)