Replies: 2 comments 8 replies
-
|
Thanks! |
Beta Was this translation helpful? Give feedback.
1 reply
-
|
I am seeing build errors in aspnetcore even with the new version (2.9.2). Some of these appear when comparing |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hey xUnit folks, your friendly neighborhood C# LDM member here. I wanted to let you know that a feature we're planning for C# 14, first-class spans, is going to introduce a new source-breaking change for
Assert.Equalsin a particular scenario. It's already partly broken with reference types, but will break with value types as well. Here's thesamples:
Ambiguous today
Ambiguous in C# 14
We've documented these ambiguities as part of the feature specification here, and discussed them during this LDM. To sum up, we see a couple of options available for fixing these potential ambiguities:
OverloadResolutionPriority(-1)to the array-based overloads, so everything goes throughReadOnlySpan.Assert.Equals<T>(ReadOnlySpan<T> expected, T[] actual), which will be preferred forAssert.Equals([1, 2], somethingThatIsAnArray).Just wanted to give you a heads up so you could look at this now, rather than after C# 14 releases.
Beta Was this translation helpful? Give feedback.
All reactions