We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 3164944 + b912482 commit 310bda6Copy full SHA for 310bda6
tests/pos/match-type-disjoint-22076.scala
@@ -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