forked from M-Labs/nac3
fixup! core: refactor to use ListObject / List
fix gen_expr list index slice bug
This commit is contained in:
parent
9e005e9b07
commit
aad4fafcba
|
@ -2935,7 +2935,8 @@ pub fn gen_expr<'ctx, G: CodeGenerator>(
|
|||
expr.location,
|
||||
);
|
||||
|
||||
let item = list.instance.get_index(generator, ctx, index);
|
||||
let list_items = list.instance.get(generator, ctx, |f| f.items);
|
||||
let item = list_items.get_index(generator, ctx, index);
|
||||
item.value.into()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue