-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Track nullability in script code #33096
Conversation
b5f894d
to
16d8555
Compare
rebased this on top of master |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can't move C# scripting to be C# 8.
228d805
to
67391af
Compare
@tmat I have updated the PR so that scripting uses |
25a7e91
to
11321d2
Compare
11321d2
to
98f044b
Compare
98f044b
to
27ea453
Compare
I rebased this on top of master and resolved conflicts that appearee due one of the recent merges. |
19fb5b7
to
a41653e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🕐
…moved it to ScriptingResources.resx
I also noticed - unrelated to this PR - a formatting warning IDE0055 on this line, which was introduced by #32668, so I fixed that too. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
@jaredpar is this OK for you? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I resolved the conflicts after #29069 was merged. The integration test seems flaky (failure unrelated to the PR). |
Thanks @filipw. Sorry for the delay. Would you mind if I squash commits when merging? |
sure no problem, it's gotten a bit messy indeed 😅 |
Thanks @filipw for the PR! |
At the moment script code is explicitly excluded from nullability analysis.
So the following script doesn't produce any warnings:
This PR includes script code into the nullability analysis.
Additionally, since scripting doesn't expose an API to set Language Version, I bumped it to C# 8 (since it should always be the newest). Once C# 8 ships, we could move it back to
Latest
.