DanielGavin / ols

Language server for Odin
MIT License
425 stars 66 forks source link

No completion in for loop by reference #226

Closed ryuukk closed 1 year ago

ryuukk commented 1 year ago

commit: 255ad5958026dc3a3116f621eaebd501b8b26a22

Example:

main :: proc() {
    stuff:= [?]int{1, 2, 3, 4, 5}

    for it in stuff {
        it // <--- here i get completion
    }

    for &it in stuff {
        it // <--- this doesn't work
    }
}
DanielGavin commented 1 year ago

Fixed.

ryuukk commented 1 year ago

thanks a lot!