Skip to content

Commit f06a2c0

Browse files
author
Amritpan Kaur
committed
[CSStep] Add message to list possible type variables that will be attempted next.
1 parent 8ce4fd6 commit f06a2c0

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

lib/Sema/CSStep.cpp

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -370,6 +370,21 @@ StepResult ComponentStep::take(bool prevFailed) {
370370
log.indent(2);
371371
log << ")" << '\n';
372372
log.indent(0);
373+
374+
if (CS.getTypeVariables().size() > 1) {
375+
auto &log = getDebugLogger();
376+
log << "(selecting next type variable to attempt from [";
377+
auto typeVars = CS.getTypeVariables();
378+
PrintOptions PO;
379+
PO.PrintTypesForDebugging = true;
380+
interleave(typeVars, [&](TypeVariableType *typeVar) {
381+
Type(typeVar).print(log, PO);
382+
},
383+
[&] {
384+
log << ", ";
385+
});
386+
log << "])" << '\n';
387+
}
373388
}
374389
}
375390

0 commit comments

Comments
 (0)