Skip to content

Commit 3a6a2b5

Browse files
committed
AST: Requirement::dump() protocol-qualifies member types
1 parent 2c273c4 commit 3a6a2b5

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

lib/AST/ASTPrinter.cpp

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6307,10 +6307,14 @@ void Requirement::dump(raw_ostream &out) const {
63076307
break;
63086308
}
63096309

6310-
if (getFirstType())
6311-
out << getFirstType() << " ";
6310+
PrintOptions opts;
6311+
opts.ProtocolQualifiedDependentMemberTypes = true;
6312+
6313+
getFirstType().print(out, opts);
6314+
out << " ";
6315+
63126316
if (getKind() != RequirementKind::Layout && getSecondType())
6313-
out << getSecondType();
6317+
getSecondType().print(out, opts);
63146318
else if (getLayoutConstraint())
63156319
out << getLayoutConstraint();
63166320
}

0 commit comments

Comments
 (0)