Commit 2e3f35c
Fix nullness warning in TryParseFeature by using box before downcast
Changed the null check pattern from matching on union directly to matching on box union. This satisfies the nullness analysis by ensuring the null check happens on the boxed value before downcasting, eliminating the FS3264 nullness warning.
Fixes build error reported in comment 3675368950.
Co-authored-by: T-Gro <[email protected]>1 parent 9da0e1b commit 2e3f35c
1 file changed
+3
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
443 | 443 | | |
444 | 444 | | |
445 | 445 | | |
446 | | - | |
447 | | - | |
448 | | - | |
449 | | - | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
450 | 449 | | |
451 | 450 | | |
452 | 451 | | |
| |||
0 commit comments