mirror of
https://github.com/erg-lang/erg.git
synced 2025-09-30 04:44:44 +00:00
Fix #282
This commit is contained in:
parent
a395938413
commit
4ed278e75c
8 changed files with 80 additions and 37 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue