Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix type param order during source location #120

Merged
merged 1 commit into from
May 12, 2024

Conversation

dchiquito
Copy link
Contributor

There is a debug_assert! during source location which verifies that there is no backtracking during the location scanning process. Type params were being folded after everything else, which required a backtrack. This caused any code with function or class type parameters to break when run in debug mode.

There is a `debug_assert!` during source location which verifies that
there is no backtracking during the location scanning process. Type
params were being folded after everything else, which required a
backtrack. This caused any code with function or class type parameters
to break when run in debug mode.
@youknowone youknowone merged commit 649fdd4 into RustPython:main May 12, 2024
3 checks passed
@dchiquito dchiquito deleted the fix-type-param-order branch May 13, 2024 18:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants