Skip to content

Commit 1745af1

Browse files
Add comment
1 parent 44aab3c commit 1745af1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

compiler/src/dotty/tools/dotc/typer/Applications.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ object Applications {
6161
def productSelectorTypes(tp: Type, errorPos: Position = NoPosition)(implicit ctx: Context): List[Type] = {
6262
def tupleSelectors(n: Int, tp: Type): List[Type] = {
6363
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`.
6466
if (sel.exists) sel :: tupleSelectors(n + 1, tp) else Nil
6567
}
6668
def genTupleSelectors(n: Int, tp: Type): List[Type] = tp match {

0 commit comments

Comments
 (0)