-
Notifications
You must be signed in to change notification settings - Fork 30
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
[CN] Double array access #484
Comments
Hm, yes. Here's a test-case:
|
This works fine:
It is tough if you're receiving this array as an argument though.
For comparison here's the error with the incorrect spec on the local array:
There is an extra |
Oh neat, so this specific example does actually work. Thanks @peterohanley ! |
Does it work when the function is called main? I recall trying what Peter did but having it not work. |
For the argument vs local, it's likely because array arguments are a bit of a lie in C and that's just actually a |
@dc-mak this verifies:
CN version: |
Is there an annotation to get this code to admit?
Thanks!
The text was updated successfully, but these errors were encountered: