Skip to content

Commit 310bda6

Browse files
authored
Merge pull request #247 from scala/backport-lts-3.3-22602
Backport "Add regression test for scala#22076" to 3.3 LTS
2 parents 3164944 + b912482 commit 310bda6

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)