summaryrefslogtreecommitdiffstats
path: root/source/slang/lookup.cpp
diff options
context:
space:
mode:
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;