mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
IDE: fix printTypeInterface
The missing module was causing not only a crash in conformance lookup, but full qualification for a generic parameter, which shouldn't ever be needed.
This commit is contained in:
@@ -177,6 +177,7 @@ printTypeInterface(ModuleDecl *M, Type Ty, ASTPrinter &Printer,
|
||||
PrintOptions Options = PrintOptions::printTypeInterface(
|
||||
Ty.getPointer(),
|
||||
Ty->getASTContext().TypeCheckerOpts.PrintFullConvention);
|
||||
Options.CurrentModule = M;
|
||||
ND->print(Printer, Options);
|
||||
printTypeNameToString(Ty, TypeName);
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user