Project

General

Profile

Bug #649

Variable with the same name but being of different types crashed the compiler.

Added by Francois Lionet about 3 years ago. Updated about 3 years ago.

Status:
Feedback
Priority:
High
Target version:
-
Start date:
01/31/2021
Due date:
% Done:

0%

Estimated time:
Affected version:

Description

This worked in AMOS (and should not have) and used to crash:

Dim a$( 10 )
a$ = ""

#1

Updated by Brian Flanagan about 3 years ago

  • 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