diff をgeneric型に