Skip to content

Nested for loops - Broken iteration #4

@sylvrs

Description

@sylvrs

Overview

The following code snippet produces the wrong result:

for (0..5) |i| {
    for (0..3) |j| {
        @println(i, j);
    }
}

Expected Output

00
01
02
10
11
12
20
21
22
30
31
32
40
41
42

Actual Output

00
01
02
10
11
12
20
21
22

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions