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

when is operator generates type, it localizes type #854

Merged
merged 1 commit into from
Nov 16, 2024
Merged

Conversation

hishamhm
Copy link
Member

Just like x is integer already localizes math due to its use of math.type in the generated code, we now automatically localize the type standard library global whenever the code generation for is generates code of the shape type(v) == "...".

Closes #848.

Just like `x is integer` already localizes `math` due to
its use of `math.type` in the generated code, we now
localize the `type` standard library global whenever the
code generation for other types uses it.
Copy link

Teal Playground URL: https://854--teal-playground-preview.netlify.app

@hishamhm hishamhm merged commit be8ac11 into master Nov 16, 2024
8 checks passed
@hishamhm hishamhm deleted the fix-848 branch November 16, 2024 19:22
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.

generated code from is doesn't valid its usefulness
1 participant