Pattern updates for generic types.