You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Debug.Assert(resultType.Equals(destinationType,
TypeCompareKind.IgnoreCustomModifiersAndArraySizesAndLowerBounds)); // Same object/dynamic and tuple names as destination type.
The text was updated successfully, but these errors were encountered:
Debug.Assert(resultType.Equals(destinationType,
TypeCompareKind.IgnoreCustomModifiersAndArraySizesAndLowerBounds | TypeCompareKind.IgnoreNullableModifiersForReferenceTypes)); // Same object/dynamic and tuple names as destination type.
It should look like the code above instead, i.e. TypeCompareKind.IgnoreNullableModifiersForReferenceTypes shouldn't be used for the purpose of comparison. The reason is that we are supposed to transfer custom modifiers, but other aspects (tuple names, dynamic, and nullable modifiers) should remain intact.
jaredpar
added a commit
to jaredpar/roslyn
that referenced
this issue
Feb 7, 2019
The text was updated successfully, but these errors were encountered: