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

Detect out-of-range array access #3503

Closed
anthony-c-martin opened this issue Jul 7, 2021 · 1 comment
Closed

Detect out-of-range array access #3503

anthony-c-martin opened this issue Jul 7, 2021 · 1 comment
Assignees
Labels
enhancement New feature or request type system

Comments

@anthony-c-martin
Copy link
Member

Bicep should be able to block the following:

var arrayWithTwoItems = [
  1
  2
]

var badAccess = arrayWithTwoItems[2]
@jeskew
Copy link
Member

jeskew commented Oct 17, 2023

This was implemented in #9724:

image

@jeskew jeskew closed this as completed Oct 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request type system
Projects
None yet
Development

No branches or pull requests

4 participants