travisdoor/bl

Compiler error on loop iterator initialized by function call

Closed this issue · 0 comments

foo :: fn () s32 { return 10; }

main :: fn () s32 {
    loop i := foo(); i < 100; i += 1 {}
    return 0;
}