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

generated python code requires null check when doing comparisons #10240

Closed
TC218 opened this issue May 3, 2021 · 1 comment
Closed

generated python code requires null check when doing comparisons #10240

TC218 opened this issue May 3, 2021 · 1 comment

Comments

@TC218
Copy link

TC218 commented May 3, 2021

When comparing null value, python throws error:

TypeError: '<=' not supported between instances of 'NoneType' and 'int'

sample haxe file:
https://gist.github.com/MT4000/9943bee6514b7be15af7c37fb8dbf95b

compilation:

haxe --python a.py -m A
python3 a.py

@RealyUniqueName
Copy link
Member

This is a part of #8426

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

No branches or pull requests

2 participants