You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, entering a "bool context" (for example, the target of an if condition, or explicitly converting something to bool via bool(...)) is not properly handled when nested occurs.
error: Invalid argument type "bool" for argument "a" when calling puyapy.op.bitlen
This is incorrect, it's a type union not a bool. We allow type unions in a bool context explicitly, in this case it should warn that it's not supported (a further improvement is to actually support this particular case, which is feasible since the underlying op code supports the type union).
The text was updated successfully, but these errors were encountered:
Currently, entering a "bool context" (for example, the target of an if condition, or explicitly converting something to
bool
viabool(...)
) is not properly handled when nested occurs.This will give the error message:
This is incorrect, it's a type union not a
bool
. We allow type unions in a bool context explicitly, in this case it should warn that it's not supported (a further improvement is to actually support this particular case, which is feasible since the underlying op code supports the type union).The text was updated successfully, but these errors were encountered: