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 704c7e1 commit b603551Copy full SHA for b603551
lib/AST/ASTPrinter.cpp
@@ -6196,8 +6196,14 @@ class TypePrinter : public TypeVisitor<TypePrinter> {
6196
}
6197
6198
void visitVariadicSequenceType(VariadicSequenceType *T) {
6199
- visit(T->getBaseType());
6200
- Printer << "...";
+ if (Options.PrintForSIL) {
+ Printer << "[";
6201
+ visit(T->getBaseType());
6202
+ Printer << "]";
6203
+ } else {
6204
6205
+ Printer << "...";
6206
+ }
6207
6208
6209
void visitProtocolType(ProtocolType *T) {
0 commit comments