[qfcc] Create generic params only in generic blocks

Since adding type properties, spec.type_expr wasn't enough for detecting
generic parameters. Fixes the missing `points` parameter in simplex.r.
This commit is contained in:
Bill Currie 2025-01-24 16:30:04 +09:00
parent 2c96acc4f0
commit a3a4ca90b5

View file

@ -544,7 +544,7 @@ make_param (specifier_t spec, rua_ctx_t *ctx)
}
param_t *param;
if (spec.type_expr) {
if (generic_block && spec.type_expr) {
param = new_generic_param (spec.type_expr, spec.sym->name);
} else if (spec.sym) {
spec = spec_process (spec, ctx);