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 e513a7a commit 2be845eCopy full SHA for 2be845e
lib/Sema/CSDiagnostics.cpp
@@ -8230,7 +8230,7 @@ bool UnableToInferGenericPackElementType::diagnoseAsError() {
8230
getParameterAt(decl, applyArgToParamElt->getParamIdx())) {
8231
emitDiagnosticAt(
8232
paramDecl->getLoc(), diag::note_in_opening_pack_element,
8233
- packElementElt->getIndex() + 1, paramDecl->getNameStr());
+ packElementElt->getIndex(), paramDecl->getNameStr());
8234
}
8235
8236
0 commit comments