Commit f308554
authored
[xabt] Enable nullable in
`LayoutAttribute.FromTypeDefinition()` can legitimately return `null` when no layout attribute exists, but its file disabled nullable analysis.
- Enable nullable reference type analysis for the file.
- Mark the factory return type and `SingleOrDefault()` result as nullable.
- Preserve the existing null-handling behavior.
- Fixes #12325LayoutAttribute.Partial.cs (#12326)1 parent e6a55b4 commit f308554
1 file changed
Lines changed: 3 additions & 3 deletions
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| |||
0 commit comments