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 a5f4b1f commit bc4998dCopy full SHA for bc4998d
lib/ClangImporter/ImportType.cpp
@@ -2410,9 +2410,8 @@ ParameterList *ClangImporter::Implementation::importFunctionParameterList(
2410
2411
// Append an additional argument to represent varargs.
2412
if (isVariadic) {
2413
- auto paramTy =
2414
- BoundGenericType::get(SwiftContext.getArrayDecl(), Type(),
2415
- {SwiftContext.getAnyExistentialType()});
+ auto paramTy = VariadicSequenceType::get(
+ SwiftContext.getAnyExistentialType());
2416
auto name = SwiftContext.getIdentifier("varargs");
2417
auto param = new (SwiftContext) ParamDecl(SourceLoc(), SourceLoc(),
2418
Identifier(), SourceLoc(),
0 commit comments