# fix slice of slice with sentinel on the lhs slice · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/5b6326ec6540d1b7af8de1176f657672be72a1e4)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 5b6326ec6540d1b7af8de1176f657672be72a1e4

Requested commit: 5b6326ec6540d1b7af8de1176f657672be72a1e4

Commit: 5b6326ec6540d1b7af8de1176f657672be72a1e4

Tree: 60d3a3c3ad1f5c68d12c33ae7b4181af9331fc1c

Author: Techatrix

Committer: Techatrix

## Message

````
fix slice of slice with sentinel on the lhs slice

example:
```zig
test {
    var foo: [2:0]u8 = .{ 1, 2 };
    _ = foo[0.. :1][0..2];
}
```

A `.slice_open` ast node will not have a end index nor sentinel.

````

## Parents

- [5d51d4474a0c61f08c264c03ecbdf651d91afe82](https://git.cafe/gitcafe/zig/commit/5d51d4474a0c61f08c264c03ecbdf651d91afe82?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/5b6326ec6540d1b7af8de1176f657672be72a1e4?format=markdown)
