Project

General

Profile

Actions

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.

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$ = ""

Actions #1

Updated by Brian Flanagan almost 4 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
Actions

Also available in: Atom PDF