Closed TwitchBronBron closed 2 months ago
Looks like brightscript casts integer and float values into booleans. So...should we make all numbers assignable to booleans...but only when calling functions?
This is also supported in conditional expressions when comparing numbers and booleans.
This is valid code. When a boolean field is given a number, 0 means false and everything else means true. How should we handle this in the v1 type system? Is it an error?