-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Nullable: Comparers, Dictionary and Friends #23971
Conversation
src/System.Private.CoreLib/shared/System/Collections/DictionaryEntry.cs
Outdated
Show resolved
Hide resolved
src/System.Private.CoreLib/shared/System/Collections/Generic/KeyValuePair.cs
Show resolved
Hide resolved
src/System.Private.CoreLib/shared/System/Collections/Generic/Dictionary.cs
Outdated
Show resolved
Hide resolved
We need to decide what to do with cc: @jkotas any input on this? |
Is this the actual syntax? What is the compiler version I need for this? Yes, whatever we do for annotating Dictionary should better not change the IL. |
|
This results into IL change. In theory, it should not break anything. In practice, there is a chance that it will break some places in unexpected ways. We have not done a change like this before so it is hard to predict. For example, |
So based on that, you think we shouldn't constrain |
It may ok, but we need to be prepared to explain and defend the change once/if breaks show up. |
6a9d7f7
to
54cee1f
Compare
I added the constraint and rebased to fix merge conflicts. This is ready for review, PTAL. |
src/System.Private.CoreLib/shared/System/Collections/Generic/Comparer.cs
Outdated
Show resolved
Hide resolved
src/System.Private.CoreLib/shared/System/Collections/Generic/Dictionary.cs
Outdated
Show resolved
Hide resolved
src/System.Private.CoreLib/shared/System/Collections/Generic/Dictionary.cs
Outdated
Show resolved
Hide resolved
src/System.Private.CoreLib/shared/System/Collections/Generic/Dictionary.cs
Outdated
Show resolved
Hide resolved
src/System.Private.CoreLib/shared/System/Collections/Generic/Dictionary.cs
Outdated
Show resolved
Hide resolved
src/System.Private.CoreLib/shared/System/Collections/Generic/Dictionary.cs
Outdated
Show resolved
Hide resolved
src/System.Private.CoreLib/shared/System/Collections/Generic/Dictionary.cs
Outdated
Show resolved
Hide resolved
src/System.Private.CoreLib/shared/System/Collections/Generic/Dictionary.cs
Outdated
Show resolved
Hide resolved
src/System.Private.CoreLib/shared/System/Collections/Generic/Dictionary.cs
Outdated
Show resolved
Hide resolved
src/System.Private.CoreLib/shared/System/Collections/Generic/Dictionary.cs
Outdated
Show resolved
Hide resolved
src/System.Private.CoreLib/shared/System/Collections/Generic/Dictionary.cs
Outdated
Show resolved
Hide resolved
src/System.Private.CoreLib/shared/System/Collections/Generic/Dictionary.cs
Outdated
Show resolved
Hide resolved
src/System.Private.CoreLib/shared/System/Collections/Generic/Dictionary.cs
Outdated
Show resolved
Hide resolved
src/System.Private.CoreLib/shared/System/Collections/Generic/Dictionary.cs
Outdated
Show resolved
Hide resolved
src/System.Private.CoreLib/shared/System/Collections/Generic/Dictionary.cs
Outdated
Show resolved
Hide resolved
src/System.Private.CoreLib/shared/System/Collections/Generic/Dictionary.cs
Outdated
Show resolved
Hide resolved
src/System.Private.CoreLib/shared/System/Collections/Generic/Dictionary.cs
Outdated
Show resolved
Hide resolved
src/System.Private.CoreLib/shared/System/Collections/Generic/Dictionary.cs
Outdated
Show resolved
Hide resolved
src/System.Private.CoreLib/shared/System/Collections/Generic/Dictionary.cs
Outdated
Show resolved
Hide resolved
src/System.Private.CoreLib/shared/System/Collections/Generic/Dictionary.cs
Outdated
Show resolved
Hide resolved
src/System.Private.CoreLib/shared/System/Collections/Generic/Dictionary.cs
Show resolved
Hide resolved
src/System.Private.CoreLib/shared/System/Collections/Generic/Dictionary.cs
Show resolved
Hide resolved
src/System.Private.CoreLib/shared/System/Collections/Generic/EqualityComparer.cs
Outdated
Show resolved
Hide resolved
src/System.Private.CoreLib/shared/System/Collections/IEqualityComparer.cs
Outdated
Show resolved
Hide resolved
src/System.Private.CoreLib/shared/System/Collections/IDictionaryEnumerator.cs
Show resolved
Hide resolved
I've addressed feedback. Had to add a bunch of |
* Nullable: Comparers, Dictionary and Friends * Add object constraint to Dictionary * Fix warning from new compiler and annotating dictionary * PR Feedback
* Nullable: Comparers, Dictionary and Friends * Add object constraint to Dictionary * Fix warning from new compiler and annotating dictionary * PR Feedback
* Nullable: Comparers, Dictionary and Friends * Add object constraint to Dictionary * Fix warning from new compiler and annotating dictionary * PR Feedback Signed-off-by: dotnet-bot <[email protected]>
* Nullable: Comparers, Dictionary and Friends * Add object constraint to Dictionary * Fix warning from new compiler and annotating dictionary * PR Feedback Signed-off-by: dotnet-bot <[email protected]>
* Nullable: Comparers, Dictionary and Friends * Add object constraint to Dictionary * Fix warning from new compiler and annotating dictionary * PR Feedback Signed-off-by: dotnet-bot <[email protected]>
* Nullable: Comparers, Dictionary and Friends * Add object constraint to Dictionary * Fix warning from new compiler and annotating dictionary * PR Feedback Signed-off-by: dotnet-bot <[email protected]>
* Nullable: Comparers, Dictionary and Friends * Add object constraint to Dictionary * Fix warning from new compiler and annotating dictionary * PR Feedback Signed-off-by: dotnet-bot <[email protected]>
* Nullable: Comparers, Dictionary and Friends * Add object constraint to Dictionary * Fix warning from new compiler and annotating dictionary * PR Feedback Signed-off-by: dotnet-bot <[email protected]>
* Nullable: Comparers, Dictionary and Friends * Add object constraint to Dictionary * Fix warning from new compiler and annotating dictionary * PR Feedback Signed-off-by: dotnet-bot <[email protected]>
* Nullable: Comparers, Dictionary and Friends * Add object constraint to Dictionary * Fix warning from new compiler and annotating dictionary * PR Feedback Signed-off-by: dotnet-bot <[email protected]>
* Nullable: Comparers, Dictionary and Friends * Add object constraint to Dictionary * Fix warning from new compiler and annotating dictionary * PR Feedback Signed-off-by: dotnet-bot <[email protected]>
* Nullable: Comparers, Dictionary and Friends * Add object constraint to Dictionary * Fix warning from new compiler and annotating dictionary * PR Feedback Signed-off-by: dotnet-bot <[email protected]>
* Nullable: Comparers, Dictionary and Friends * Add object constraint to Dictionary * Fix warning from new compiler and annotating dictionary * PR Feedback Commit migrated from dotnet/coreclr@ad38bf7
Depends on latest compiler to be pulled in + all errors introduced in regression: dotnet/roslyn#34976 to be fixed.