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

Report warning awaiting nullable task #31519

Closed
cston opened this issue Dec 4, 2018 · 0 comments
Closed

Report warning awaiting nullable task #31519

cston opened this issue Dec 4, 2018 · 0 comments
Assignees
Labels
Area-Compilers Feature - Nullable Reference Types Nullable Reference Types Resolution-Fixed The bug has been fixed and/or the requested behavior has been implemented
Milestone

Comments

@cston
Copy link
Member

cston commented Dec 4, 2018

Report warning for await t:

using System.Threading.Tasks;

#nullable enable

class C
{
    static async Task M(Task? t)
    {
        await t; // warning: may be null
    }
}

See #31503 (comment) from @alrz.

@jcouv jcouv self-assigned this Dec 21, 2018
@jcouv jcouv added the Resolution-Fixed The bug has been fixed and/or the requested behavior has been implemented label Jan 1, 2019
@jcouv jcouv added this to the 16.0.P2 milestone Jan 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Compilers Feature - Nullable Reference Types Nullable Reference Types 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