Before this commit, type mismatches invoking functions in expressions would
yield confusing error messages due to missing type names, e.g.:
Type mismatch invoking MISSING(number) as missing(string).
This commit fills in the missing type names:
Type mismatch invoking MISSING(number) as missing().
An upcoming commit will start checking error messages as part of the tests
for expressions, which should ensure that the problem does not recur.
next if $type->{ROLE} eq 'fixed';
my ($human_name) = $type->{HUMAN_NAME};
- $human_name = "" if !defined $human_name;
+ $human_name = $type->{NAME} if !defined $human_name;
- my (@members) = ("\"$type->{NAME}\"", "\"\"",
+ my (@members) = ("\"$type->{NAME}\"", "\"$human_name\"",
0, "OP_$type->{NAME}", 0, "{}", 0, 0);
print "{", join (', ', @members), "},\n";
}