Skip to content

Commit 067bd26

Browse files
committed
Add regression test
Closes #6507
1 parent 8effbc4 commit 067bd26

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ i8052.scala
1515
tuple-filter.scala
1616
i7740a.scala
1717
i7740b.scala
18+
i6507b.scala
1819

1920
# Stale symbol: package object scala
2021
seqtype-cycle

tests/pos/i6507b.scala

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import scala.compiletime._
2+
3+
object Test {
4+
transparent inline def summonValues[T]: Tuple = inline erasedValue[T] match {
5+
case _: EmptyTuple => EmptyTuple
6+
case _: (a *: b) => constValue[a] *: summonValues[b]
7+
}
8+
9+
summonValues[(96, 97, 98)]
10+
}

0 commit comments

Comments
 (0)