Commit a68184a
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 a0fe4b7 commit a68184a
1 file changed
Lines changed: 2 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7193 | 7193 | | |
7194 | 7194 | | |
7195 | 7195 | | |
7196 | | - | |
| 7196 | + | |
7197 | 7197 | | |
7198 | | - | |
7199 | | - | |
| 7198 | + | |
7200 | 7199 | | |
7201 | 7200 | | |
7202 | 7201 | | |
| |||
0 commit comments