summaryrefslogtreecommitdiffstats
path: root/source/slang/slang-check-decl.cpp
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2024-09-04 13:26:16 -0700
committerGitHub <noreply@github.com>2024-09-04 13:26:16 -0700
commit599dae52e85d2a86bf3cae1ebd0883fedf44a76e (patch)
treef9c807080bfdc9580fea345c45550310b7ac6c9d /source/slang/slang-check-decl.cpp
parentddd29057e48a5b309726750e3daf78bfd073038e (diff)
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>
Diffstat (limited to 'source/slang/slang-check-decl.cpp')
-rw-r--r--source/slang/slang-check-decl.cpp2
1 files changed, 1 insertions, 1 deletions
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