Commit f9e67e6
Fix type inference for multiple assignment of generic Array[T]
Handle Type::Instance (e.g. from RBS Array[T]) in MAsgnBox#run0 by
distributing the element type to variables.
Previously, only Type::Array (literal arrays) was handled correctly.
For other types, it assigned the entire array object to the first variable
on the left-hand side, leaving subsequent variables as untyped.1 parent a8a857d commit f9e67e6
2 files changed
Lines changed: 36 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1156 | 1156 | | |
1157 | 1157 | | |
1158 | 1158 | | |
1159 | | - | |
1160 | 1159 | | |
1161 | 1160 | | |
1162 | 1161 | | |
1163 | 1162 | | |
1164 | | - | |
1165 | | - | |
1166 | | - | |
1167 | | - | |
1168 | | - | |
1169 | | - | |
| 1163 | + | |
| 1164 | + | |
| 1165 | + | |
| 1166 | + | |
| 1167 | + | |
| 1168 | + | |
| 1169 | + | |
| 1170 | + | |
1170 | 1171 | | |
1171 | | - | |
| 1172 | + | |
| 1173 | + | |
1172 | 1174 | | |
| 1175 | + | |
| 1176 | + | |
| 1177 | + | |
1173 | 1178 | | |
1174 | 1179 | | |
1175 | | - | |
1176 | | - | |
1177 | | - | |
1178 | 1180 | | |
1179 | 1181 | | |
1180 | 1182 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
0 commit comments