-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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 not use a constant to set the size of a byte array #762
Comments
This code works:
See #1062 for fixed size arrays. |
Note: Go does support using a compile-time constant for fixed-size arrays: |
This is a better way:
|
@aguspiza Fixed. |
V version: 0.1.6
OS: linux
**C compiler version: gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.11) **
What did you do?
What did you expect to see?
I expected to compile and pass the test
What did you see instead?
Compiler error:
test_arrconst
0
pass=2 fn=
test_arrconst
panic: os_test.v:6
undefined:
u8
The text was updated successfully, but these errors were encountered: