We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Transpiled comparison of Some List and None fails, as the equality tries to compare fields which don't exist on None.
Some List
None
Some [1;2;3] = None
dotnet fable . --lang python python test.py
Expected result: should return false
false
Actual result: AttributeError: 'NoneType' object has no attribute 'tail'
AttributeError: 'NoneType' object has no attribute 'tail'
dotnet fable --version
dotnet tool list/update/install
@Freymaurer
The text was updated successfully, but these errors were encountered:
Fix comparaison between optional list when one is None
4725aea
Fix #3617
51e0842
Successfully merging a pull request may close this issue.
Description
Transpiled comparison of
Some List
andNone
fails, as the equality tries to compare fields which don't exist on None.Repro code
test.fsx
test.cmd
dotnet fable . --lang python python test.py
Expected and actual results
Expected result: should return
false
Actual result:
AttributeError: 'NoneType' object has no attribute 'tail'
Related information
dotnet fable --version
: 4.5.0dotnet tool list/update/install
: 4.6.0@Freymaurer
The text was updated successfully, but these errors were encountered: