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
I discovered a way to crash the compiler with the following message:
assertion "0" failed: file "frontend.c", line 726, function: coercion
Program aborted
Attempting to concatenate an integer type to a string will do this every time. For example:
DIM n AS INTEGER
PRINT "HELLO " + n
If I use the type correct "HELLO " + STR$(n), the program seems to work as expected.
The expected result would be either a compiler error (since you can't concatenate strings and numeric types) or an automatic widening conversion (ie: an implicit STR$(n)).
The text was updated successfully, but these errors were encountered:
I discovered a way to crash the compiler with the following message:
Attempting to concatenate an integer type to a string will do this every time. For example:
DIM n AS INTEGER
PRINT "HELLO " + n
If I use the type correct "HELLO " + STR$(n), the program seems to work as expected.
The expected result would be either a compiler error (since you can't concatenate strings and numeric types) or an automatic widening conversion (ie: an implicit STR$(n)).
The text was updated successfully, but these errors were encountered: