summaryrefslogtreecommitdiffstats
path: root/source/slang/lookup.cpp
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2018-01-13 13:17:02 -0800
committerGitHub <noreply@github.com>2018-01-13 13:17:02 -0800
commitd4dab2cd3a409411c2d7caed01fc02a0fd3e8450 (patch)
tree10c92df406a82e7a5eb24b56c17d9256a7183c44 /source/slang/lookup.cpp
parentdf6eeb93c1718334779ae328db277cdf7a9d7b04 (diff)
parent4d2086f47e25aa4545df95ddfd260c8bc5aafdb2 (diff)
Merge pull request #364 from csyonghe/assoctype
Support nested generics
Diffstat (limited to 'source/slang/lookup.cpp')
-rw-r--r--source/slang/lookup.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/source/slang/lookup.cpp b/source/slang/lookup.cpp
index 901661667..376d9bd6d 100644
--- a/source/slang/lookup.cpp
+++ b/source/slang/lookup.cpp
@@ -1,5 +1,6 @@
// lookup.cpp
#include "lookup.h"
+#include "name.h"
namespace Slang {
@@ -320,8 +321,8 @@ void DoLookupImpl(
continue;
DeclRef<ContainerDecl> containerDeclRef =
- DeclRef<Decl>(containerDecl, nullptr).As<ContainerDecl>();
-
+ DeclRef<Decl>(containerDecl, createDefaultSubstitutions(session, containerDecl)).As<ContainerDecl>();
+
BreadcrumbInfo breadcrumb;
BreadcrumbInfo* breadcrumbs = nullptr;