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

out variable declarations do not work in index arguments #13219

Closed
gafter opened this issue Aug 17, 2016 · 0 comments
Closed

out variable declarations do not work in index arguments #13219

gafter opened this issue Aug 17, 2016 · 0 comments
Assignees
Labels
Area-Compilers New Language Feature - Out Variable Declaration Out Variable Declaration Resolution-Fixed The bug has been fixed and/or the requested behavior has been implemented

Comments

@gafter
Copy link
Member

gafter commented Aug 17, 2016

out var does not work today in index arguments. This can arise in a number of supported scenarios

  • COM interop
  • indexed property (e.g. VB interop)
  • out parameter to an indexer in metadata
  • dynamic indexing

The out variable declaration feature should be supported in indexers.

@gafter gafter added this to the 2.0 (Preview 5) milestone Aug 17, 2016
@gafter gafter self-assigned this Aug 17, 2016
gafter added a commit to gafter/roslyn that referenced this issue Aug 19, 2016
…tern variables.

Also eliminates some cases of cascaded definite assignment errors.
Fixes dotnet#13219
Fixes dotnet#13009
Fixes dotnet#12996
Fixes dotnet#10446
@gafter gafter added 4 - In Review A fix for the issue is submitted for review. and removed 3 - Working labels Aug 22, 2016
@markwilkie markwilkie removed 4 - In Review A fix for the issue is submitted for review. Bug labels Aug 30, 2016
@gafter gafter added the Resolution-Fixed The bug has been fixed and/or the requested behavior has been implemented label Aug 30, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Compilers New Language Feature - Out Variable Declaration Out Variable Declaration Resolution-Fixed The bug has been fixed and/or the requested behavior has been implemented
Projects
None yet
Development

No branches or pull requests

2 participants