summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2024-03-19 18:01:42 -0700
committerGitHub <noreply@github.com>2024-03-19 18:01:42 -0700
commit1ee1688a70f1c099b24b5d479b4f08e3cf3ae410 (patch)
tree88f857aeb0a94c09a9351e39b0971329625fddc0 /source
parent05f403be96f0d991a3ef949e5a6a6fb3b416e1ff (diff)
Fix type checking for constructors in generic interfaces. (#3799)
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()))
{