Skip to content

Commit 366f741

Browse files
committed
AST: Print substitution signature without applying inverse transform
1 parent 81027cf commit 366f741

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/AST/ASTPrinter.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7546,11 +7546,13 @@ class TypePrinter : public TypeVisitor<TypePrinter> {
75467546

75477547
GenericSignature sig = substitutions.getGenericSignature();
75487548

7549+
// The substituted signature is printed without inverse requirement
7550+
// desugaring, but also we drop conformances to Copyable and Escapable
7551+
// when constructing it.
75497552
sub->Printer << "@substituted ";
75507553
sub->printGenericSignature(sig,
75517554
PrintAST::PrintParams |
7552-
PrintAST::PrintRequirements |
7553-
PrintAST::PrintInverseRequirements);
7555+
PrintAST::PrintRequirements);
75547556
sub->Printer << " ";
75557557
}
75567558

0 commit comments

Comments
 (0)