summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
Diffstat (limited to 'source')
-rw-r--r--source/slang/slang-ast-type.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/slang/slang-ast-type.cpp b/source/slang/slang-ast-type.cpp
index e8d702062..a398e2690 100644
--- a/source/slang/slang-ast-type.cpp
+++ b/source/slang/slang-ast-type.cpp
@@ -108,7 +108,7 @@ Val* DeclRefType::_substituteImplOverride(ASTBuilder* astBuilder, SubstitutionSe
// If this declref type is a direct reference to ThisType or a Generic parameter,
// and `subst` provides an argument for it, then we should just return that argument.
//
- if (as<DirectDeclRef>(substDeclRef.declRefBase))
+ if (as<DirectDeclRef>(substDeclRef.declRefBase) || as<MemberDeclRef>(substDeclRef.declRefBase))
{
if (as<ThisTypeDecl>(substDeclRef.getDecl()))
{