Commit d38a4fd
Fix two compiler warnings.
* CompoundAssignmentInstruction.cs (CS9336) — the C# 9 IntPtr / UIntPtr
guard read `type.Kind is not TypeKind.NInt or TypeKind.NUInt`, which
parses as `(is not NInt) or (is NUInt)` — true unless Kind == NInt.
The intent (per the comment "but not nint or C# 11 IntPtr") is "Kind
is neither NInt nor NUInt", which needs parentheses around the
alternation: `is not (NInt or NUInt)`. Effect: when Kind == NUInt the
branch no longer mistakenly applies the C# 9 IntPtr-only restrictions.
* IMethod.IsAsync (CS1574) — `<see cref="MethodImplAttributes.Async"/>`
doesn't resolve on netstandard2.0 (the enum value was added later;
this codebase declares its own SRMExtensions.MethodImplAsync = 0x2000
for that reason). Rewrite the doc comment in prose to describe the
flag without an unresolvable cref.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent f8c8649 commit d38a4fd
2 files changed
Lines changed: 4 additions & 2 deletions
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
215 | 215 | | |
216 | 216 | | |
217 | 217 | | |
218 | | - | |
| 218 | + | |
219 | 219 | | |
220 | 220 | | |
221 | 221 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
116 | | - | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
117 | 119 | | |
118 | 120 | | |
119 | 121 | | |
| |||
0 commit comments