diff options
| author | Yong He <yonghe@outlook.com> | 2017-12-28 17:43:45 -0500 |
|---|---|---|
| committer | Yong He <yonghe@outlook.com> | 2017-12-28 17:43:45 -0500 |
| commit | ee1ea355f2cde3a3bfb0ce0308129f3cf82a2971 (patch) | |
| tree | c48beaece1bc6f421706cda24b5424148d942321 /source/slang/syntax.cpp | |
| parent | bcfe8366d2f094bfabccc0014c7248bc46dbf514 (diff) | |
| parent | 9efd9597c50d4dbbf57a9285085aab044ed6c8c0 (diff) | |
Merge branch 'struct-in-generic'
Diffstat (limited to 'source/slang/syntax.cpp')
| -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)); } |
