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 713c92d commit 5fbd756Copy full SHA for 5fbd756
lib/AST/TypeCheckRequests.cpp
@@ -13,6 +13,7 @@
13
#include "swift/AST/Decl.h"
14
#include "swift/AST/DiagnosticsCommon.h"
15
#include "swift/AST/TypeLoc.h"
16
+#include "swift/AST/TypeRepr.h"
17
#include "swift/AST/Types.h"
18
19
using namespace swift;
@@ -36,7 +37,10 @@ void swift::simple_display(
36
37
38
auto ext = value.get<ExtensionDecl *>();
39
out << "extension of ";
- ext->getAsNominalTypeOrNominalTypeExtensionContext()->dumpRef(out);
40
+ if (auto typeRepr = ext->getExtendedTypeLoc().getTypeRepr())
41
+ typeRepr->print(out);
42
+ else
43
+ ext->getAsNominalTypeOrNominalTypeExtensionContext()->dumpRef(out);
44
}
45
46
//----------------------------------------------------------------------------//
0 commit comments