wcc: classify tuple destructure from the rhs type

This commit is contained in:
2026-08-09 03:49:58 +09:00
parent edacb40bfe
commit 5f829399ea

View File

@@ -3432,7 +3432,7 @@ fn cgmlet(c: *cgen, n: *syntax.node) void = {
if (rhs.kind == syntax.nkind.N_IDENT) {
let rl: *local = localfindnode(c, rhs.str);
if (rl != nil) {
let rti: *syntax.tinfo = rl.tnode.type_: *syntax.tinfo;
let rti: *syntax.tinfo = rhs.type_: *syntax.tinfo;
rti = tichase(rti);
if (rti != nil) { if (rti.kind == syntax.tykind.TY_TUPLE) {
let srcoff: i32 = rl.off;