Skip to content

Commit a601e83

Browse files
mbovelsjrd
andauthored
Add regression test for #22076 (#22602)
Closes #22076. --------- Co-authored-by: Sébastien Doeraene <[email protected]>
1 parent 482107b commit a601e83

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Diff for: tests/pos/match-type-disjoint-22076.scala

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
trait Foo[CP <: NonEmptyTuple]:
2+
type EndNode = Tuple.Last[CP]
3+
4+
def f(end: Foo[?]): end.EndNode =
5+
???
6+
7+
trait Bar[CP <: NonEmptyTuple] extends Foo[CP]:
8+
val v: EndNode = f(this)

0 commit comments

Comments
 (0)