Skip to content

Commit 20dc12c

Browse files
committed
[Diagnostics] Don't print explicit 'any' in gatherGenericParamBindingsText
to preserve old behavior.
1 parent 2833d4f commit 20dc12c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/Sema/TypeCheckGeneric.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -839,6 +839,7 @@ static std::string gatherGenericParamBindingsText(
839839
SmallString<128> result;
840840
llvm::raw_svector_ostream OS(result);
841841
auto options = PrintOptions::forDiagnosticArguments();
842+
options.PrintExplicitAny = false;
842843

843844
for (auto gp : genericParams) {
844845
auto canonGP = gp->getCanonicalType()->castTo<GenericTypeParamType>();

0 commit comments

Comments
 (0)