Issue #28556: Allow defining methods in NamedTuple class syntax (#362) (3.5->3.6)