From 599dae52e85d2a86bf3cae1ebd0883fedf44a76e Mon Sep 17 00:00:00 2001 From: Yong He Date: Wed, 4 Sep 2024 13:26:16 -0700 Subject: Open existential on arguments after overload resolution. (#4982) * Open existential on arguments after overload resolution. * Fix. * Update source/slang/slang-check-overload.cpp Co-authored-by: ArielG-NV <159081215+ArielG-NV@users.noreply.github.com> --------- Co-authored-by: ArielG-NV <159081215+ArielG-NV@users.noreply.github.com> --- source/slang/slang-check-decl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/slang/slang-check-decl.cpp') diff --git a/source/slang/slang-check-decl.cpp b/source/slang/slang-check-decl.cpp index e5e8e8acc..1dc81e861 100644 --- a/source/slang/slang-check-decl.cpp +++ b/source/slang/slang-check-decl.cpp @@ -4226,7 +4226,7 @@ namespace Slang // DiagnosticSink tempSink(getSourceManager(), nullptr); ExprLocalScope localScope; - SemanticsVisitor subVisitor(withSink(&tempSink).withExprLocalScope(&localScope)); + SemanticsVisitor subVisitor(withSink(&tempSink).withParentFunc(synFuncDecl).withExprLocalScope(&localScope)); // With our temporary diagnostic sink soaking up any messages // from overload resolution, we can now try to resolve -- cgit v1.2.3