Skip to content

Commit 7d6c835

Browse files
test: add in regression test for #7445 (#17475)
So this adds in a test that shows that the minimized version of the original issue is fixed, but the original report now fails the pickling tests. I've gone ahead and added a test for that as well, but added it to the excludes. I'll reopen the issue and mention this update.
2 parents 2904561 + 9310fc8 commit 7d6c835

File tree

3 files changed

+25
-0
lines changed

3 files changed

+25
-0
lines changed

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

+3
Original file line numberDiff line numberDiff line change
@@ -95,3 +95,6 @@ i4176-gadt.scala
9595
i13974a.scala
9696

9797
java-inherited-type1
98+
99+
# recursion limit exceeded
100+
i7445b.scala

tests/pos/i7445a.scala

+10
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

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