Commit 586d0d1
committed
Constant expression fix
Changed from "A constant expression may be either a value type or a reference type" (with null only under the reference type branch) to "A constant expression shall have the value null, or be of a value type or a reference type." This hoists null to the top level so it's valid regardless of target type — covering nullable value type defaults like void M(int? x = null). Removed the now-redundant null bullet from the reference type list.1 parent 755c835 commit 586d0d1
1 file changed
Lines changed: 2 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7206 | 7206 | | |
7207 | 7207 | | |
7208 | 7208 | | |
7209 | | - | |
| 7209 | + | |
7210 | 7210 | | |
7211 | | - | |
7212 | | - | |
| 7211 | + | |
7213 | 7212 | | |
7214 | 7213 | | |
7215 | 7214 | | |
| |||
0 commit comments