summaryrefslogtreecommitdiffstats
path: root/source/slang/mangle.cpp
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2017-11-01 13:16:26 -0400
committerYong He <yonghe@outlook.com>2017-11-01 13:16:26 -0400
commit134354c68768c0e3530c02678e12cb02f5646e8a (patch)
tree20a9ae10db6790ddc5032315b85efd94fc672cff /source/slang/mangle.cpp
parentb623864fe609e6912cdd2e350aa70cf7e441e1d3 (diff)
Adding support for associated types.
Diffstat (limited to 'source/slang/mangle.cpp')
-rw-r--r--source/slang/mangle.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/slang/mangle.cpp b/source/slang/mangle.cpp
index 63e54d065..cd90a0e41 100644
--- a/source/slang/mangle.cpp
+++ b/source/slang/mangle.cpp
@@ -117,6 +117,10 @@ namespace Slang
{
emitQualifiedName(context, declRefType->declRef);
}
+ else if (auto assocTypeDeclRefType = dynamic_cast<AssocTypeDeclRefType*>(type))
+ {
+ emitQualifiedName(context, assocTypeDeclRefType->declRef);
+ }
else
{
SLANG_UNEXPECTED("unimplemented case in mangling");