wcc: classify tuple destructure from the rhs type
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user