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

"CS8306: Tuple element name inferred" reported for deconstruction assignment with inferred name and type #21028

Closed
cston opened this issue Jul 21, 2017 · 1 comment
Assignees
Milestone

Comments

@cston
Copy link
Member

cston commented Jul 21, 2017

Compile with language version 7.0 with 7.1 compiler:

class C
{
    static void M(int a, int b, bool condition)
    {
        (var c, var d) = condition ? (a, default(object)) : (b, null);
    }
}
(5,26): error CS8306: Tuple element name 'a' is inferred. Please use language version 7.1 or greater to access an element by its inferred name.
@cston cston self-assigned this Jul 21, 2017
@cston cston changed the title "CS8306: Tuple element name inferred" reported for tuple with inferred name and type "CS8306: Tuple element name inferred" reported for deconstruction assignment with inferred name and type Jul 21, 2017
@cston cston closed this as completed Jul 24, 2017
bdrupieski added a commit to bdrupieski/SpaceSavior that referenced this issue Aug 17, 2017
@jcouv jcouv added this to the 15.3 milestone Aug 25, 2017
@jcouv
Copy link
Member

jcouv commented Aug 25, 2017

This was fixed in 15.3.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants