mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Merge remote-tracking branch 'origin/master' into master-next
This commit is contained in:
@@ -874,9 +874,9 @@ void SwiftLangSupport::printMemberDeclDescription(const swift::ValueDecl *VD,
|
||||
OS << "<#T##";
|
||||
|
||||
paramTy = paramTy.subst(substMap);
|
||||
if (paramTy->hasError() && param->getTypeLoc().hasLocation()) {
|
||||
if (paramTy->hasError() && param->getTypeRepr()) {
|
||||
// Fallback to 'TypeRepr' printing.
|
||||
param->getTypeLoc().getTypeRepr()->print(OS);
|
||||
param->getTypeRepr()->print(OS);
|
||||
} else {
|
||||
paramTy.print(OS);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user