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

Add test for null-coalescing operator on nullable tuples with names #16857

Merged
merged 2 commits into from
Feb 1, 2017

Conversation

jcouv
Copy link
Member

@jcouv jcouv commented Jan 31, 2017

Test-only change.
Verifies #16825

@VSadov @dotnet/roslyn-compiler for review

@jcouv jcouv added Area-Compilers Feature - Tuples Tuples Test Test failures in roslyn-CI labels Jan 31, 2017
@jcouv jcouv added this to the 2.0 (RTM) milestone Jan 31, 2017
@jcouv jcouv self-assigned this Jan 31, 2017

var x5 = nab != null ? nab : nac; // (a, )?

var x6 = nab ?? (a: 1, c: 3); // (a, b)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Try adding
var x6double = nab ?? (a: 1.1, c: 3); // (a, c)

There should be no warnings in this case.

@VSadov
Copy link
Member

VSadov commented Jan 31, 2017

LGTM
one scenario suggestion

@jcouv jcouv merged commit 4fa6e3f into dotnet:master Feb 1, 2017
@jcouv jcouv deleted the null-coalescing branch February 1, 2017 02:10
@AlekseyTs
Copy link
Contributor

@jcouv Should we add similar test(s) for VB?

@jcouv
Copy link
Member Author

jcouv commented Feb 1, 2017

Yes, Will do

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

Successfully merging this pull request may close these issues.

4 participants