Skip to content

Commit 661f42f

Browse files
committed
test: add in regression test for #7445
This adds in a regression test for the minimized issue, but the original one now has a different issue with pickling. I've added this in as well, but added it to the excludes.
1 parent 5c4e597 commit 661f42f

File tree

3 files changed

+25
-0
lines changed

3 files changed

+25
-0
lines changed

compiler/test/dotc/pos-test-recheck.excludes

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,6 @@ gadt-cast-singleton.scala
1818
i11247.scala
1919
i6199b.scala
2020
t3440.scala
21+
22+
# pickling related issue
23+
i7445b.scala

tests/pos/i7445a.scala

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// https://github.com/lampepfl/dotty/issues/7445
2+
3+
object Main {
4+
type O1[A] = {
5+
type OutInner[X] = Unit
6+
type Out = OutInner[A]
7+
}
8+
9+
def f1: O1[Int]#Out = ???
10+
}

tests/pos/i7445b.scala

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
// https://github.com/lampepfl/dotty/issues/7445
2+
3+
type O1[A] = {
4+
type OutInner[Ts] <: Tuple = Ts match {
5+
case EmptyTuple => EmptyTuple
6+
case h *: t => h *: OutInner[t]
7+
}
8+
9+
type Out = OutInner[A]
10+
}
11+
12+
def f1: O1[(Int, Int)]#Out = ???

0 commit comments

Comments
 (0)