Skip to content
New issue

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

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

Already on GitHub? # to your account

Using discards is not supported #162

Open
Happyrobot33 opened this issue Apr 29, 2024 · 0 comments
Open

Using discards is not supported #162

Happyrobot33 opened this issue Apr 29, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@Happyrobot33
Copy link

Happyrobot33 commented Apr 29, 2024

Describe the bug in detail:
When you have a method that defines a out parameter, like MyCoolMethod(out string myString), then the normal way to call it if you don't want the value of the out, is to do this MyCoolMethod(out _). The issue is this does not work, and the compiler complains about a missing symbol _. Having this fixed would be nice, as otherwise right now you need to assign it to a random variable in your source and it looks a bit messy. The only current workaround is essentially MyCoolMethod(out string DISCARD)

@Happyrobot33 Happyrobot33 added the bug Something isn't working label Apr 29, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant