Skip to content

continue statement leads to loops that never complete. #99

Open
@jaredlll08

Description

@jaredlll08
for i in 0 .. 10 {
	println(i);
	if i % 2 == 0 {
		continue;
	}
	println("not even");
}

produces:

IntRange var10000 = new IntRange(0, 10);
int var3 = var10000.to;
int i = var10000.from;

while(var3 > i) {
    Globals.println(Integer.toString(i));
    if (i % 2 != 0) {
        Globals.println("not even");
        ++i;
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingbytecodeAll issues that relate to the generation of Java Bytecode

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions