mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[AST] NFC: Introduce PrintOptions::forDebugging
This commit is contained in:
@@ -13439,12 +13439,9 @@ retry_after_fail:
|
||||
// If we have a common result type, bind the expected result type to it.
|
||||
if (commonResultType && !commonResultType->is<ErrorType>()) {
|
||||
if (isDebugMode()) {
|
||||
PrintOptions PO;
|
||||
PO.PrintTypesForDebugging = true;
|
||||
llvm::errs().indent(solverState ? solverState->getCurrentIndent() : 0)
|
||||
<< "(common result type for $T" << fnTypeVar->getID() << " is "
|
||||
<< commonResultType.getString(PO)
|
||||
<< ")\n";
|
||||
<< "(common result type for $T" << fnTypeVar->getID() << " is "
|
||||
<< commonResultType.getString(PrintOptions::forDebugging()) << ")\n";
|
||||
}
|
||||
|
||||
// Introduction of a `Bind` constraint here could result in the disconnect
|
||||
|
||||
Reference in New Issue
Block a user