summaryrefslogtreecommitdiffstats
path: root/source/slang/syntax.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/syntax.cpp')
-rw-r--r--source/slang/syntax.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/slang/syntax.cpp b/source/slang/syntax.cpp
index ca66e2110..ef5113f97 100644
--- a/source/slang/syntax.cpp
+++ b/source/slang/syntax.cpp
@@ -505,7 +505,7 @@ void Type::accept(IValVisitor* visitor, void* extra)
if (aggTypeDeclRef.getDecl()->memberDictionary.TryGetValue(assocTypeDecl->getName(), targetType))
{
if (auto typeDefDecl = dynamic_cast<TypeDefDecl*>(targetType))
- return typeDefDecl->type.type;
+ return typeDefDecl->type.type->Substitute(aggTypeDeclRef.substitutions);
else
return DeclRefType::Create(getSession(), DeclRef<Decl>(targetType, aggTypeDeclRef.substitutions));
}