diff options
Diffstat (limited to 'source')
| -rw-r--r-- | source/slang/syntax.cpp | 2 |
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)); } |
