Skip to content

Commit

Permalink
Update source/slang/slang-check-overload.cpp
Browse files Browse the repository at this point in the history
Co-authored-by: ArielG-NV <159081215+ArielG-NV@users.noreply.github.com>
  • Loading branch information
csyonghe and ArielG-NV authored Sep 4, 2024
1 parent 5db5698 commit 701cc5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/slang/slang-check-overload.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2410,7 +2410,7 @@ namespace Slang
}
else if (auto callableDeclRef = context.bestCandidate->item.declRef.as<CallableDecl>())
{
for (auto param : callableDeclRef.getDecl()->getMembersOfType<ParamDecl>())
for (auto param : callableDeclRef.getDecl()->getParameters())
{
paramDirections.add(getParameterDirection(param));
}
Expand Down

0 comments on commit 701cc5e

Please sign in to comment.