Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[UNITY] Fix the symbolic var handling (#15973)
This PR fix a bug that only appears on windows on symbolic var handling. For the function parameter var with Tuple struct info, directly iterate over that variable will cause out of bound error(which is properly handled in linux but not necessarily in windows due to how iteration is handled). Note that the var itself is not iterable and likely it relied on a sugar that var[i] dispatches to tuple_getitem and when it gets out of bound the exception get caught by the python iterator. This PR fixes it by directly iterate over the struct info array in the annotation.
- Loading branch information