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)).
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)).