Skip to content

Commit d1378a6

Browse files
committed
test: add in a regression test for #7414
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
1 parent 5c4e597 commit d1378a6

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-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+
i7414.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)