Skip to content

Commit

Permalink
Add Or int? (#37225)
Browse files Browse the repository at this point in the history
  • Loading branch information
say25 committed May 31, 2020
1 parent 2694a16 commit a589a17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/coding-guidelines/breaking-change-rules.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Breaking Change Rules
✓ **Allowed**
* Increasing the range of accepted values for a property or parameter if the member _is not_ `virtual`

Note that the range can only increase to the extent that it does not impact the static type. e.g. it is OK to remove `if (x > 10) throw new ArgumentOutOfRangeException("x")`, but it is not OK to change the type of `x` from `int` to `long`.
Note that the range can only increase to the extent that it does not impact the static type. e.g. it is OK to remove `if (x > 10) throw new ArgumentOutOfRangeException("x")`, but it is not OK to change the type of `x` from `int` to `long` or `int?`.

* Returning a value of a more derived type for a property, field, return or `out` value

Expand Down

0 comments on commit a589a17

Please sign in to comment.