From 1ee1688a70f1c099b24b5d479b4f08e3cf3ae410 Mon Sep 17 00:00:00 2001 From: Yong He Date: Tue, 19 Mar 2024 18:01:42 -0700 Subject: Fix type checking for constructors in generic interfaces. (#3799) --- source/slang/slang-ast-type.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source') 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(substDeclRef.declRefBase)) + if (as(substDeclRef.declRefBase) || as(substDeclRef.declRefBase)) { if (as(substDeclRef.getDecl())) { -- cgit v1.2.3