★ wanayoo — archive 1999 https://github.com/PowerShell/PowerShell/pull/7788Nouvelle recherche | Portail wanayoo
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix .NET adapter to not throw when fails to create a PSMethod due to ByRef-like type #7788

Merged
merged 1 commit into from Sep 17, 2018

Conversation

Projects
None yet
2 participants
@daxian-dbw
Copy link
Member

commented Sep 14, 2018 •

PR Summary

Fix #7786

When embedding signatures of the overload methods into a PSMethod, we don't handle ByRef-like types -- overload methods with ByRef-like type parameters will be marked as 'NonBindable' and get ignored in the conversion from PSMethod to Delegate. This PR fix a bug that causes exception to be thrown when dealing with a ByRef-like type being used by a ref or out parameter.

/cc @SeeminglyScience

PR Checklist

@daxian-dbw daxian-dbw requested review from BrucePay and adityapatwardhan Sep 14, 2018

@daxian-dbw daxian-dbw self-assigned this Sep 17, 2018

@daxian-dbw daxian-dbw merged commit 285e471 into PowerShell:master Sep 17, 2018

8 checks passed

CodeFactor No issues found.
Details
PowerShell-CI-linux #PR-7788-20180914.01 succeeded
Details
PowerShell-CI-macos #PR-7788-20180914.01 succeeded
Details
PowerShell-CI-spelling #PR-7788-20180914.01 succeeded
Details
PowerShell-CI-windows #PR-7788-20180914.01 succeeded
Details
WIP ready for review
Details
continuous-integration/appveyor/pr AppVeyor build succeeded
Details
license/cla All CLA requirements met.
Details

@daxian-dbw daxian-dbw deleted the daxian-dbw:bugfix branch Sep 17, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.