-
Notifications
You must be signed in to change notification settings - Fork 292
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
[Python] Boxing bytes looses type information #3766
Comments
@HLWeil @Freymaurer, this is a bit tricky since Python really just have |
Same thing with JS/TS, there is limited RTTI cause the base type for all integer types is either |
Yes, with Python I'm considering removing the int subclasses which would make all integers transpile to variable size |
Description
When boxing a
byte
value, it looses its underlying type information.Repro code
test.fsx
test.cmd
dotnet fable . --lang python python test.py
Expected and actual results
Expected result: Boxed byte value should match the reflective match case, and calling
GetType().Name
should return "Byte"Actual result: Match case is not hit and "Object" is returned
Related information
dotnet fable --version
: 4.13.0dotnet tool list/update/install
: 4.13.0@Freymaurer
The text was updated successfully, but these errors were encountered: