Skip to content

Instantly share code, notes, and snippets.

Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Works as expected --- (Base.arrayref)(false, xs, i) in @code_typed:
```
function update(xs, i)
@inbounds xs[i] += 1
end
```
`@inbounds` ignored --- (Base.arrayref)(true, xs, i) in @code_typed:
```
@inbounds function update(xs, i)