Skip to content

Commit 9310fc8

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 4cb6ee6 commit 9310fc8

File tree

3 files changed

+25
-0
lines changed

3 files changed

+25
-0
lines changed

compiler/test/dotc/pos-test-pickling.blacklist

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,3 +94,6 @@ i4176-gadt.scala
9494
i13974a.scala
9595

9696
java-inherited-type1
97+
98+
# recursion limit exceeded
99+
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)