Bug #649
open
Variable with the same name but being of different types crashed the compiler.
Added by Francois Lionet almost 4 years ago.
Updated almost 4 years ago.
Description
This worked in AMOS (and should not have) and used to crash:
Dim a$( 10 )
a$ = ""
- Status changed from Resolved to Feedback
- Target version deleted (
Beta 3)
- Affected version set to 1.0.0 (B3)
Re-tested on 2/16/2021:
No longer causes compiler crash, however, still fails .
The array functions normally, however the simple string variable returns object Object instead of value of string.
Example:
Dim a$( 10 )
a$ = ""
a$(1)="abc"
a$="def"
a$(2)="ghi"
Print a$(1),a$(2),a$
Result is:
abc ghi [object Object]
Should be:
abc ghi def
Also available in: Atom
PDF