Open eiriktsarpalis opened 11 months ago
Tagging subscribers to this area: @dotnet/area-system-text-json, @gregsdennis See info in area-owners.md if you want to be subscribed.
Author: | eiriktsarpalis |
---|---|
Assignees: | - |
Labels: | `area-System.Text.Json`, `untriaged` |
Milestone: | - |
something to consider when fixing this: should reflection work when Nested
is initially null
?
Consider the following reproduction:
This is most probably expected given the nature of init-only properties in source gen, but perhaps it would make sense to also fail in the case of the reflection serializer (since the current behavior violates the
init
contract of the nested poco).