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

Assign default literal to a deconstruction #19513

Closed
alrz opened this issue May 15, 2017 · 2 comments
Closed

Assign default literal to a deconstruction #19513

alrz opened this issue May 15, 2017 · 2 comments
Assignees

Comments

@alrz
Copy link
Member

alrz commented May 15, 2017

Version Used: master

Steps to Reproduce:

class C {
    void M(int i , int j) {
        (i, j) = default;
    }
}

Expected Behavior: compile with no error.

Actual Behavior: error CS8131: Deconstruct assignment requires an expression with a type on the right-hand-side.

@alrz
Copy link
Member Author

alrz commented May 15, 2017

@jcouv Can this be special cased? would come in handy sometime.

@jcouv jcouv self-assigned this May 15, 2017
@jcouv
Copy link
Member

jcouv commented May 15, 2017

Issue moved to dotnet/csharplang #583 via ZenHub

@jcouv jcouv closed this as completed May 15, 2017
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

3 participants