mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Merge pull request #69116 from slavapestov/fix-apply-variadic-generic-args
Sema: Fix two bugs with type resolution of generic arguments
This commit is contained in:
@@ -17,6 +17,7 @@
|
||||
#include "CSDiagnostics.h"
|
||||
#include "MiscDiagnostics.h"
|
||||
#include "TypeCheckProtocol.h"
|
||||
#include "TypeCheckType.h"
|
||||
#include "TypoCorrection.h"
|
||||
#include "swift/AST/ASTContext.h"
|
||||
#include "swift/AST/ASTPrinter.h"
|
||||
@@ -9313,7 +9314,9 @@ bool OutOfPlaceThenStmtFailure::diagnoseAsError() {
|
||||
}
|
||||
|
||||
bool InvalidTypeSpecializationArity::diagnoseAsError() {
|
||||
emitDiagnostic(diag::type_parameter_count_mismatch, D->getBaseIdentifier(),
|
||||
NumParams, NumArgs, NumArgs < NumParams, HasParameterPack);
|
||||
diagnoseInvalidGenericArguments(getLoc(), D,
|
||||
NumArgs, NumParams,
|
||||
HasParameterPack,
|
||||
/*generic=*/nullptr);
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user