fix: take private and public into account for constant_assignment
of derived state
#18788
Loading
constant_assignment
of derived state
#18788