core/typecheck: fix missing ExprKind::Asterisk in fix_assignment_target_context
This commit is contained in:
parent
1b29844948
commit
acaf09477a
|
@ -134,6 +134,10 @@ fn fix_assignment_target_context(node: &mut ast::Located<ExprKind>) {
|
||||||
| ExprKind::Subscript { ctx, .. } => {
|
| ExprKind::Subscript { ctx, .. } => {
|
||||||
*ctx = ExprContext::Store;
|
*ctx = ExprContext::Store;
|
||||||
}
|
}
|
||||||
|
ExprKind::Starred { ctx, value } => {
|
||||||
|
*ctx = ExprContext::Store;
|
||||||
|
fix_assignment_target_context(value);
|
||||||
|
}
|
||||||
ExprKind::Tuple { ctx, elts } | ExprKind::List { ctx, elts } => {
|
ExprKind::Tuple { ctx, elts } | ExprKind::List { ctx, elts } => {
|
||||||
*ctx = ExprContext::Store;
|
*ctx = ExprContext::Store;
|
||||||
elts.iter_mut().for_each(fix_assignment_target_context);
|
elts.iter_mut().for_each(fix_assignment_target_context);
|
||||||
|
|
Loading…
Reference in New Issue