mirror of
https://github.com/ProvableHQ/leo.git
synced 2024-12-26 19:51:52 +03:00
fix type variable tuple parsing
This commit is contained in:
parent
085d59e67a
commit
078827310c
@ -90,7 +90,9 @@ impl TypeVariablePairs {
|
||||
(Type::Array(left_type, left_dimensions), Type::Array(right_type, right_dimensions)) => {
|
||||
self.push_pairs_array(*left_type, left_dimensions, *right_type, right_dimensions, span)
|
||||
}
|
||||
(Type::Tuple(left_types), Type::Tuple(right_types)) => self.push_pairs_tuple(left_types, right_types, span),
|
||||
(Type::Tuple(left_types), Type::Tuple(right_types)) => {
|
||||
self.push_pairs_tuple(left_types.into_iter(), right_types.into_iter(), span)
|
||||
}
|
||||
(_, _) => Ok(()), // No `TypeVariable` found so we do not push any pairs.
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user