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 0b29ba9 commit 8db129bCopy full SHA for 8db129b
lib/AST/ASTPrinter.cpp
@@ -4739,10 +4739,15 @@ class TypePrinter : public TypeVisitor<TypePrinter> {
4739
case MetatypeRepresentation::ObjC: Printer << "@objc_metatype "; break;
4740
}
4741
4742
+
4743
+ auto &ctx = T->getASTContext();
4744
+ if (T->is<ExistentialMetatypeType>() &&
4745
+ ctx.LangOpts.EnableExplicitExistentialTypes)
4746
+ Printer << "any ";
4747
4748
printWithParensIfNotSimple(T->getInstanceType());
4749
4750
// We spell normal metatypes of existential types as .Protocol.
- auto &ctx = T->getASTContext();
4751
if (isa<MetatypeType>(T) &&
4752
T->getInstanceType()->isAnyExistentialType() &&
4753
!ctx.LangOpts.EnableExplicitExistentialTypes) {
0 commit comments