This commit is contained in:
Shunsuke Shibayama 2022-12-09 19:46:59 +09:00
parent a395938413
commit 4ed278e75c
8 changed files with 80 additions and 37 deletions

View file

@ -1859,8 +1859,8 @@ impl PyCodeGenerator {
}
// _: (Int, Str)
TypeSpec::Tuple(tup) => {
let len = tup.len();
for (i, t_spec) in tup.into_iter().enumerate() {
let len = tup.tys.len();
for (i, t_spec) in tup.tys.into_iter().enumerate() {
if i != 0 && i != len - 1 {
self.dup_top();
}