Closed mahSource closed 12 months ago
Looks like a bug in core:odin/parser
.
Just running
main :: proc() {
array2 := [?]int{1, 2, 3, 4, 5}
#reverse for x in array2 do fmt.println(x) // this generates many, many ols errors
}
Gives _test/test.odin(11:1): expected '}', got 'EOF'
Waiting on my PR: https://github.com/odin-lang/Odin/pull/2785
Fixed.
Thanks so much Daniel. Just loaded in the OLS and it works perfectly on my system now with the subject code. Cheers!
This took a while to isolate in a large file, I had to progressively comment out lines until it was clear only the #reverse statement with do that caused everything.