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 a8b1890 commit 27d4f94Copy full SHA for 27d4f94
lib/AST/ASTPrinter.cpp
@@ -6224,7 +6224,7 @@ class TypePrinter : public TypeVisitor<TypePrinter> {
6224
// interfaces. Verifying that the underlying type of a
6225
// protocol typealias is a constriant type is fundamentally
6226
// circular, so the desugared type should be written in source.
6227
- if (Options.DesugarExistentialConstraint) {
+ if (Options.DesugarExistentialConstraint && !T->isAnyObject()) {
6228
visit(T->getConstraintType()->getDesugaredType());
6229
} else {
6230
visit(T->getConstraintType());
0 commit comments