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

Compiler permits creation of nullable array type #32169

Closed
gafter opened this issue Jan 4, 2019 · 1 comment
Closed

Compiler permits creation of nullable array type #32169

gafter opened this issue Jan 4, 2019 · 1 comment

Comments

@gafter
Copy link
Member

gafter commented Jan 4, 2019

In #31991 (comment) it is reported that the compiler permits creation of a nullable array type:

#nullable enable
public class C {
    public void M() {
    	_ = new C?(); // error (correct)
        _ = new string[50]?; // no error (incorrect)
        _ = new string[50]?[,]; // no error (incorrect)
    }
}
@gafter gafter self-assigned this Jan 9, 2019
@gafter gafter added this to the 16.0.P2 milestone Jan 9, 2019
@gafter gafter added this to Working/In Review in Compiler: Gafter Jan 9, 2019
@gafter gafter modified the milestones: 16.0.P2, 16.0.P3 Jan 16, 2019
@gafter gafter modified the milestones: 16.0.P3, 16.0.P4 Jan 25, 2019
@gafter
Copy link
Member Author

gafter commented Jan 25, 2019

Fixed in #32431.

@gafter gafter closed this as completed Jan 25, 2019
@gafter gafter removed this from Working/In Review in Compiler: Gafter Jan 25, 2019
xoofx pushed a commit to stark-lang/stark-roslyn that referenced this issue Apr 16, 2019
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

1 participant