Type inference fails when using array literals with negative numbers
Closed this issue · 1 comments
alexspurling commented
The following fails to compile with the error "Waiting for iteration expression type to be known":
use core {println}
main :: () {
for x: .[-1, 0, 2, 3, 4] {
println(x);
}
}
However, the following compiles successfully:
use core {println}
main :: () {
for x: .[0, 2, 3, 4] {
println(x);
}
}
I am using compiler version 2a0d19e but the same errors occur on try.onyxlang.io.