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 81e9c6b commit f0f9c56Copy full SHA for f0f9c56
lib/Sema/CSStep.cpp
@@ -438,6 +438,20 @@ StepResult ComponentStep::take(bool prevFailed) {
438
// If there are no disjunctions or type variables to bind
439
// we can't solve this system unless we have free type variables
440
// allowed in the solution.
441
+ if (CS.isDebugMode()) {
442
+ PrintOptions PO;
443
+ PO.PrintTypesForDebugging = true;
444
+
445
+ auto &log = getDebugLogger();
446
+ log << "(failed due to free variables:";
447
+ for (auto *typeVar : CS.getTypeVariables()) {
448
+ if (!typeVar->getImpl().hasRepresentativeOrFixed()) {
449
+ log << " " << typeVar->getString(PO);
450
+ }
451
452
+ log << ")\n";
453
454
455
return finalize(/*isSuccess=*/false);
456
}
457
0 commit comments