Skip to content

Loop and variable bug #2825

Closed
Closed
@lortonx

Description

@lortonx

Bug description

The compiler considers "i" to be one variable, not two, and an infinite loop occurs.

Steps to reproduce

run

    for(let i = 0; i < 30; i++) {
        let i = 10
        while(i--) {}
    }

AssemblyScript version

0.27.15

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions