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 8524b69 commit 6bf934cCopy full SHA for 6bf934c
compiler/src/dotty/tools/dotc/typer/Applications.scala
@@ -124,8 +124,11 @@ object Applications {
124
}
125
126
def productSelectorTypes(tp: Type, errorPos: SrcPos)(using Context): List[Type] = {
127
- val sels = for (n <- Iterator.from(0)) yield extractorMemberType(tp, nme.selectorName(n), errorPos)
128
- sels.takeWhile(_.exists).toList
+ if tp.isError then
+ Nil
129
+ else
130
+ val sels = for (n <- Iterator.from(0)) yield extractorMemberType(tp, nme.selectorName(n), errorPos)
131
+ sels.takeWhile(_.exists).toList
132
133
134
def tupleComponentTypes(tp: Type)(using Context): List[Type] =
0 commit comments