We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 44aab3c commit 1745af1Copy full SHA for 1745af1
compiler/src/dotty/tools/dotc/typer/Applications.scala
@@ -61,6 +61,8 @@ object Applications {
61
def productSelectorTypes(tp: Type, errorPos: Position = NoPosition)(implicit ctx: Context): List[Type] = {
62
def tupleSelectors(n: Int, tp: Type): List[Type] = {
63
val sel = extractorMemberType(tp, nme.selectorName(n), errorPos)
64
+ // extractorMemberType will return NoType if this is the tail of tuple with an unknown tail
65
+ // such as `Int *: T` where `T <: Tuple`.
66
if (sel.exists) sel :: tupleSelectors(n + 1, tp) else Nil
67
}
68
def genTupleSelectors(n: Int, tp: Type): List[Type] = tp match {
0 commit comments