summaryrefslogtreecommitdiffstats
path: root/source/slang/slang-check-decl.cpp
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2023-11-29 11:29:14 -0800
committerGitHub <noreply@github.com>2023-11-29 11:29:14 -0800
commit4fb3b10b81cf8c976ebd1ebb7fcde7708f022957 (patch)
tree394a08e5b744fa85ac98c0b8758e994b0aab3a34 /source/slang/slang-check-decl.cpp
parent62426e94ef11fd6baa213757f87114ec174b406e (diff)
Improve generic type argument inference. (#3370)
* Improve generic type argument inference. * Fix. * Fix. --------- Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'source/slang/slang-check-decl.cpp')
-rw-r--r--source/slang/slang-check-decl.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/slang/slang-check-decl.cpp b/source/slang/slang-check-decl.cpp
index 7c36bdd5f..98a2b18a1 100644
--- a/source/slang/slang-check-decl.cpp
+++ b/source/slang/slang-check-decl.cpp
@@ -6630,7 +6630,9 @@ namespace Slang
if (!TryUnifyTypes(constraints, extDecl->targetType.Ptr(), type))
return DeclRef<ExtensionDecl>();
- auto solvedDeclRef = trySolveConstraintSystem(&constraints, makeDeclRef(extGenericDecl), ArrayView<Val*>());
+
+ ConversionCost baseCost;
+ auto solvedDeclRef = trySolveConstraintSystem(&constraints, makeDeclRef(extGenericDecl), ArrayView<Val*>(), baseCost);
if (!solvedDeclRef)
{
return DeclRef<ExtensionDecl>();