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

Allow delegates to return values from .NET #854

Merged
merged 2 commits into from Mar 25, 2021
Merged

Allow delegates to return values from .NET #854

merged 2 commits into from Mar 25, 2021

Conversation

derekdiamond
Copy link
Contributor

Removed the void returning block in the delegate handling in function arguments.
This allows expressions like:

list.Sum(x => x.cost)

To be correctly passed through to .NET. Before the change it would say that no matching function found.

@lahma
Copy link
Collaborator

lahma commented Mar 25, 2021

Could you also add a test case in InteropTests to ensure it doesn't break later on?

@lahma lahma merged commit 5b51036 into sebastienros:dev Mar 25, 2021
@lahma
Copy link
Collaborator

lahma commented Mar 25, 2021

Thank you!

@derekdiamond derekdiamond deleted the Local-Updates branch March 28, 2021 12:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants