Skip to content

OPTION BASE should be allowed after ERASEing all arrays #185

@robhagemans

Description

@robhagemans

Test code:

DIM Y%(4)
OPTION BASE 1
ERASE Y%
OPTION BASE 1    

What happens:

Duplicate Definition
Ok
Duplicate Definition
Ok

What should happen:

Duplicate Definition
Ok
Ok

Background - OPTION BASE should fail with Duplicate Definition if there are allocated arrays. However, if all arrays have been ERASEd it should be allowed. PC-BASIC disallows it if at any point an array has been allocated

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions