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 1ac5c39 commit 27ae04eCopy full SHA for 27ae04e
lib/AST/ASTPrinter.cpp
@@ -6285,7 +6285,7 @@ class TypePrinter : public TypeVisitor<TypePrinter> {
6285
// interfaces. Verifying that the underlying type of a
6286
// protocol typealias is a constriant type is fundamentally
6287
// circular, so the desugared type should be written in source.
6288
- if (Options.DesugarExistentialConstraint) {
+ if (Options.DesugarExistentialConstraint && !T->isAnyObject()) {
6289
visit(T->getConstraintType()->getDesugaredType());
6290
} else {
6291
visit(T->getConstraintType());
0 commit comments