diff options
Diffstat (limited to 'source/slang/slang-parser.cpp')
| -rw-r--r-- | source/slang/slang-parser.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/slang/slang-parser.cpp b/source/slang/slang-parser.cpp index a2fd944eb..6401b3d06 100644 --- a/source/slang/slang-parser.cpp +++ b/source/slang/slang-parser.cpp @@ -3649,7 +3649,7 @@ static void parseOptionalGenericConstraints(Parser* parser, ContainerDecl* decl) // substitution needs to be filled during check Type* paramType = nullptr; - if (as<GenericTypeParamDeclBase>(decl)) + if (as<GenericTypeParamDeclBase>(decl) || as<GlobalGenericParamDecl>(decl)) { paramType = DeclRefType::create(parser->astBuilder, DeclRef<Decl>(decl)); |
