commit e73537ad005511f07573d10522a6e7403b2b81f2
parent 63f0afafe1b8a80498f4333057241451b06e4d3d
Author: m21c <ho*******@gmail.com>
Date: Mon, 22 Jun 2026 22:14:31 +0200
fold type/module dispatch: add note
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/compiler.c b/compiler.c
@@ -5148,6 +5148,8 @@ folddispatch(Env *env, Node *expr)
assert(expr->kind == ODISP && lhs->kind == TYPE);
assert(field);
+ /* @note field decl is already assigned to
+ * expr->u.declref by dispatch() */
expr->kind = ADECLREF;
expr->rhs = NULL;
expr->lhs = NULL;