Skip to content

Commit 9e05fdf

Browse files
authored
Merge pull request #12624 from dotty-staging/fix-9623
Fix #9623: Add regression test
2 parents fc725e9 + 9932716 commit 9e05fdf

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

tests/pos/9623.scala

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
object A {
2+
sealed trait TList
3+
sealed trait TNil extends TList
4+
sealed trait ++:[H, T <: TList] extends TList
5+
6+
type :--[R <: TList, A] <: TList = R match {
7+
case (A ++: t) => t
8+
case (h ++: t) => h ++: (t :-- A)
9+
}
10+
}
11+
12+
object B {
13+
import A.*
14+
15+
type X = (Int ++: String ++: Double ++: TNil) :-- String
16+
17+
class T[A]
18+
19+
def f(ta: T[X]) = ()
20+
21+
f(new T[Int ++: Double ++: TNil])
22+
}

0 commit comments

Comments
 (0)