"Foreach with indices" is broken with Range #759

Closed
nddrylliog opened this Issue Jan 3, 2014 · 0 comments

Projects

None yet

2 participants

@nddrylliog
Member

Example:

for ((index, element) in 0..10) {
    "list[%d] = %s" printfln(index, element toString())
}

Prints

list[-1] = 0
list[-1] = 1
(etc.)

Instead of:

list[0] = 0
list[1] = 1
(etc.)
@fasterthanlime fasterthanlime self-assigned this Aug 16, 2014
@fasterthanlime fasterthanlime added C backend and removed Middle-end labels Aug 16, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment