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 error for any member accesses on Null #36956

Open
MichaelRFairhurst opened this issue May 14, 2019 · 1 comment

Comments

Projects
None yet
2 participants
@MichaelRFairhurst
Copy link
Contributor

commented May 14, 2019

Null x;
x.foo;

CFE reports an error, analyzer does not.

@lrhn

This comment has been minimized.

Copy link
Member

commented May 14, 2019

That was never a correct behavior, so it is definitely an analyzer bug.
At some point the null expression had type bottom, and null.foo might have been acceptable at that point (the spec didn't say either way), but Null x; x.foo; was never valid.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.