Skip to content

Commit b912482

Browse files
mboveltgodzik
authored andcommitted
Add regression test for scala#22076 (scala#22602)
Closes scala#22076. --------- Co-authored-by: Sébastien Doeraene <[email protected]> [Cherry-picked a601e83]
1 parent 805eadc commit b912482

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed
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)