Skip to content

Commit 79d36c6

Browse files
authored
Merge pull request #6118 from dotty-staging/fix-#4376
Fix #4376: Add regression test
2 parents f94deac + 3914f99 commit 79d36c6

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/neg/4376.scala

+6
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)