# Sema: disallow slicing many-item pointer with different sentinel · gitcafe/zig

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

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

Visibility: public

Requested revision: 19fc5f4fb29a525252b2eaf3f6388d07f97bd32f

Requested commit: 19fc5f4fb29a525252b2eaf3f6388d07f97bd32f

Commit: 19fc5f4fb29a525252b2eaf3f6388d07f97bd32f

Tree: 2ef144edec2325d943ab8601c686aaab4ebacae5

Author: dweiller

Committer: Matthew Lugg

## Message

```
Sema: disallow slicing many-item pointer with different sentinel

This change prevents adding or changing the sentinel in the type of a
many-item pointer via the slicing syntax `ptr[a.. :S]`.

```

## Parents

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

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