summaryrefslogtreecommitdiff
path: root/source/slang
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang')
-rw-r--r--source/slang/slang-check-decl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/slang/slang-check-decl.cpp b/source/slang/slang-check-decl.cpp
index 5b3f692be..ba91bbefa 100644
--- a/source/slang/slang-check-decl.cpp
+++ b/source/slang/slang-check-decl.cpp
@@ -12168,7 +12168,7 @@ void SemanticsDeclCapabilityVisitor::visitInheritanceDecl(InheritanceDecl* inher
DeclVisibility getDeclVisibility(Decl* decl)
{
- if (as<GenericTypeParamDecl>(decl) || as<GenericValueParamDecl>(decl) ||
+ if (as<GenericTypeParamDeclBase>(decl) || as<GenericValueParamDecl>(decl) ||
as<GenericTypeConstraintDecl>(decl))
{
auto genericDecl = as<GenericDecl>(decl->parentDecl);