Skip to content

Commit

Permalink
Correct assert in CustomModifierUtils
Browse files Browse the repository at this point in the history
The assert for custom modifier checking should include the nullable
validation

closes dotnet#30740
  • Loading branch information
jaredpar committed Feb 7, 2019
1 parent a5a9e4f commit 77a396f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ internal static TypeSymbol CopyTypeCustomModifiers(TypeSymbol sourceType, TypeSy
Debug.Assert(resultType.Equals(sourceType, TypeCompareKind.IgnoreDynamicAndTupleNames | TypeCompareKind.IgnoreNullableModifiersForReferenceTypes)); // Same custom modifiers as source type.

Debug.Assert(resultType.Equals(destinationType,
TypeCompareKind.IgnoreCustomModifiersAndArraySizesAndLowerBounds | TypeCompareKind.IgnoreNullableModifiersForReferenceTypes)); // Same object/dynamic and tuple names as destination type.
TypeCompareKind.IgnoreCustomModifiersAndArraySizesAndLowerBounds)); // Same object/dynamic and tuple names as destination type.

return resultType;
}
Expand Down

0 comments on commit 77a396f

Please sign in to comment.