core: Inferencer fold_stmt()
on StmtKind::Assign
should not force unify value_ty
with target_ty
for __setitem__
assignments. #460
Labels
No Milestone
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: M-Labs/nac3#460
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
value_ty
does not have to be the same astarget_ty
in general (note that ndarray subscript assignment depends on #411):If this is rectified,
Generator::gen_assign
should add an extra parametervalue_ty: Type
.Everything here may go the same for
AugAssign
.core: Inferencer `fold_stmt()` on `StmtKind::Assign` should not force unify `value_ty` with `target_ty`.to core: Inferencer `fold_stmt()` on `StmtKind::Assign` should not force unify `value_ty` with `target_ty` for `__setitem__` assignments.lyken referenced this issue2024-07-31 10:48:35 +08:00
#482 is a more general issue than this. Closing.