Skip to content

Commit c9ecd0c

Browse files
RexJaeschkeBillWagner
authored andcommitted
Support Numeric IntPtr
1 parent c21c871 commit c9ecd0c

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

standard/expressions.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,8 @@ As an example of numeric promotion, consider the predefined implementations of t
287287
```csharp
288288
int operator *(int x, int y);
289289
uint operator *(uint x, uint y);
290+
nint operator *(nint x, nint y);
291+
nuint operator *(nuint x, nuint y);
290292
long operator *(long x, long y);
291293
ulong operator *(ulong x, ulong y);
292294
float operator *(float x, float y);
@@ -298,7 +300,6 @@ When overload resolution rules ([§12.6.4](expressions.md#1264-overload-resoluti
298300

299301
> *Example*: For the operation `b * s`, where `b` is a `byte` and `s` is a `short`, overload resolution selects `operator *(int, int)` as the best operator. Thus, the effect is that `b` and `s` are converted to `int`, and the type of the result is `int`. Likewise, for the operation `i * d`, where `i` is an `int` and `d` is a `double`, `overload` resolution selects `operator *(double, double)` as the best operator. *end example*
300302
301-
302303
**End of informative text.**
303304

304305
#### 12.4.7.2 Unary numeric promotions

0 commit comments

Comments
 (0)