summaryrefslogtreecommitdiff
path: root/source/slang/slang-mangle.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/slang-mangle.cpp')
-rw-r--r--source/slang/slang-mangle.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/slang/slang-mangle.cpp b/source/slang/slang-mangle.cpp
index 93b29ccbe..438ab2187 100644
--- a/source/slang/slang-mangle.cpp
+++ b/source/slang/slang-mangle.cpp
@@ -444,6 +444,11 @@ namespace Slang
// be treated as equivalent to the type itself.
emit(context, "X");
emitType(context, getTargetType(context->astBuilder, extensionDeclRef));
+ for (auto inheritanceDecl : getMembersOfType<InheritanceDecl>(context->astBuilder, extensionDeclRef))
+ {
+ emit(context, "I");
+ emitType(context, getSup(context->astBuilder, inheritanceDecl));
+ }
return;
}