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

No warning for mismatched nullability in constraint #27742

Closed
cston opened this issue Jun 12, 2018 · 1 comment
Closed

No warning for mismatched nullability in constraint #27742

cston opened this issue Jun 12, 2018 · 1 comment
Assignees
Milestone

Comments

@cston
Copy link
Member

cston commented Jun 12, 2018

No warning reported for new B<A<object>>():

class A<T> { }
class B<T> where T : A<object?> { }
class C
{
    static void Main()
    {
        new B<A<object?>>();
        new B<A<object>>(); // warning
    }
}
@cston
Copy link
Member Author

cston commented Aug 3, 2018

Fixed in #28959.

@cston cston closed this as completed Aug 3, 2018
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