Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't use size_of in range of inline for #468

Closed
ghost opened this issue Nov 8, 2019 · 1 comment
Closed

Can't use size_of in range of inline for #468

ghost opened this issue Nov 8, 2019 · 1 comment

Comments

@ghost
Copy link

ghost commented Nov 8, 2019

package main

import "core:fmt"

main :: proc() {
    inline for i in 0..<size_of(u32) {
    }
}

This fails with:

test.odin(8:1) Syntax Error: Expected '{', got '}'
test.odin(8:2) Syntax Error: Expected '}', got 'EOF'
@ThisDevDane
Copy link
Member

Please use our issue templates when reporting bugs https://github.com/odin-lang/Odin/blob/master/.github/ISSUE_TEMPLATE/bug_report.md

gingerBill added a commit that referenced this issue Nov 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants