mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-02-25 13:11:00 +00:00
[qfcc] Handle field expressions in compute_type
I'm not entirely sure how that got in there (I didn't check the backtrace, but probably in @construct (before I realized I needed to add @construct)).
This commit is contained in:
parent
9dca372643
commit
cb20153da5
1 changed files with 5 additions and 0 deletions
|
@ -1035,6 +1035,11 @@ compute_type (const expr_t *arg, comp_ctx_t *ctx)
|
|||
C (OP_CALL_B, ctx->funcs[tf_gentype], nullptr, res);
|
||||
return res;
|
||||
}
|
||||
if (arg->type == ex_field) {
|
||||
// type attribute
|
||||
const expr_t *args[2] = {arg->field.object, arg->field.member};
|
||||
return compute_attribute (2, args, ctx);
|
||||
}
|
||||
if (arg->type != ex_type) {
|
||||
internal_error (arg, "not a type expression");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue