Skip to content

Commit b0ccf40

Browse files
test: add in a regression test for #7414 (#17479)
While the original reported issue does now compile, the pickling tests fail with: ```diff - .fun:((q: DepTest.Dep[DepTest.obj.type]#t.Dependent): scala.Unit)>@tests/pos/i7414.scala<223..235> + .fun:((q: DepTest.obj.Dependent): scala.Unit)>@tests/pos/i7414.scala<223..235> ``` This adds in a test for this, but adds it to the excludes. I'm assuming this was what was meant by this comment: #7414 (comment). Refs: #7414
2 parents 4cb6ee6 + 27b84f0 commit b0ccf40

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ i15181.scala
2121
i15922.scala
2222
t5031_2.scala
2323
i16997.scala
24+
i7414.scala
2425

2526
# Tree is huge and blows stack for printing Text
2627
i7034.scala

tests/pos/i7414.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/7414
2+
3+
object DepTest {
4+
trait Trait {
5+
case class Dependent()
6+
}
7+
object obj extends Trait
8+
case class Dep[T <: Trait](t: T) {
9+
def fun(q: t.Dependent): Unit = ???
10+
}
11+
Dep(obj).fun(obj.Dependent())
12+
}

0 commit comments

Comments
 (0)