Skip to content

Update AssertNullShouldNotBeCalledOnValueType and AssertSameShouldNotBeCalledOnValueTypes to not trigger on arguments containing user-defined implicit conversions#149

Merged
bradwilson merged 1 commit intoxunit:mainfrom
bjornhellander:feature/Issue2395_NotNullConversion
Dec 4, 2022
Merged

Update AssertNullShouldNotBeCalledOnValueType and AssertSameShouldNotBeCalledOnValueTypes to not trigger on arguments containing user-defined implicit conversions#149
bradwilson merged 1 commit intoxunit:mainfrom
bjornhellander:feature/Issue2395_NotNullConversion

Conversation

@bjornhellander
Copy link
Copy Markdown
Contributor

Fixes xunit/xunit#2395

The old code in WalkDownImplicitConversions checked IOperation.IsImplicit instead of IConversionOperation.Conversion.IsImplicit, which apparently was not the same thing.

…BeCalledOnValueTypes to not trigger on arguments containing user-defined implicit conversions

#2395
@dnfadmin
Copy link
Copy Markdown

dnfadmin commented Jul 29, 2022

CLA assistant check
All CLA requirements met.

@bradwilson bradwilson merged commit 46b7489 into xunit:main Dec 4, 2022
@bradwilson
Copy link
Copy Markdown
Member

Thanks!

@bjornhellander bjornhellander deleted the feature/Issue2395_NotNullConversion branch March 30, 2023 18:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

xUnit2002 flags a literal int that's being cast to a reference type as not nullable

3 participants