Skip to content

Commit d4aba3c

Browse files
Fix #6362: Add regression test
1 parent fdf9ccc commit d4aba3c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/pos/6362.scala

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
object Test {
2+
type LeafElem[X] = X match {
3+
case String => Char
4+
case Array[t] => LeafElem[t]
5+
case Iterable[t] => LeafElem[t]
6+
case AnyVal => X
7+
}
8+
}

0 commit comments

Comments
 (0)