Currently, code generation fails if a type references more than 255 types. Worse, type references are not deduplicated - a record type with 255 integer-typed fields results in code generation that refers to 255 integer serializers.
Type references should be deduplicated for code generation, and limits should be put in place in the compiler to reject type declarations that reference more than 255 deduplicated types.
Currently, code generation fails if a type references more than 255 types. Worse, type references are not deduplicated - a
record
type with 255 integer-typed fields results in code generation that refers to 255 integer serializers.Type references should be deduplicated for code generation, and limits should be put in place in the compiler to reject type declarations that reference more than 255 deduplicated types.