diff options
Diffstat (limited to 'source/slang/check.cpp')
| -rw-r--r-- | source/slang/check.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/slang/check.cpp b/source/slang/check.cpp index dc5efbd73..46ed9da15 100644 --- a/source/slang/check.cpp +++ b/source/slang/check.cpp @@ -6777,7 +6777,8 @@ namespace Slang // Lookup generic parameter types in global scope for (auto name : entryPoint->genericParameterTypeNames) { - if (!translationUnitSyntax->memberDictionary.TryGetValue(name, firstDeclWithName)) + firstDeclWithName = entryPoint->compileRequest->lookupGlobalDecl(name); + if (!firstDeclWithName) { // If there doesn't appear to be any such declaration, then // we need to diagnose it as an error, and then bail out. |
