summaryrefslogtreecommitdiff
path: root/source/slang/slang-ast-decl-ref.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/slang-ast-decl-ref.cpp')
-rw-r--r--source/slang/slang-ast-decl-ref.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/slang/slang-ast-decl-ref.cpp b/source/slang/slang-ast-decl-ref.cpp
index 3025381ea..9f140a524 100644
--- a/source/slang/slang-ast-decl-ref.cpp
+++ b/source/slang/slang-ast-decl-ref.cpp
@@ -318,7 +318,7 @@ void DeclRefBase::toText(StringBuilder& out)
return;
}
- if (as<GenericTypeParamDecl>(this->getDecl()))
+ if (as<GenericTypeParamDeclBase>(this->getDecl()))
{
SLANG_ASSERT(as<DirectDeclRef>(this));
out << this->getDecl()->getName()->text;