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

Constant conversion to slice #168

Open
travisdoor opened this issue Jul 28, 2023 · 0 comments
Open

Constant conversion to slice #168

travisdoor opened this issue Jul 28, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@travisdoor
Copy link
Owner

Constant array cannot be converted to slice in the global scope. Also reported error is missing the location in the file.

main :: fn () s32 {
    return 0;
}

NUMS :: [2]s32.{ 10, 20 };

VALUE :: call_this(NUMS);

call_this :: fn (slice: []s32) #comptime {}
@travisdoor travisdoor added the bug Something isn't working label Jul 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant