Skip to content

[release/6.0.2xx] Fix invalid cast of type parameter #2643

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

Merged
merged 1 commit into from
Feb 24, 2022

Conversation

sbomer
Copy link
Member

@sbomer sbomer commented Feb 22, 2022

Brings the fix @agocke made as part of #2540 to 6.0.2. Fixes #2642.

Customer Impact

Updating VS from 17 to 17.1 brings in a 6.0.2 SDK which causes the analyzer to crash on a project that previously worked, producing a warning. The warning also shows up in CI when using the 6.0.2 SDK, and fails the build with warnaserror. See details in #2642.

Testing

Unit tests confirmed the issue and the fix. This was originally discovered as part of running the analyzer over itself and the linker in #2523.

Risk

Very low risk - this turns a cast to a type check, and skips the case which used to throw an InvalidCastException.

@sbomer sbomer requested a review from marek-safar as a code owner February 22, 2022 21:15
@sbomer sbomer requested review from agocke and vitek-karas February 22, 2022 21:15
Copy link
Member

@jeffschwMSFT jeffschwMSFT left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved. We should take for consideration in 6.0.2xx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants