# Sema: allow ptr field access on pointer-to-array · gitcafe/zig

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

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

Visibility: public

Requested revision: d5f1a8823eb964c6149fc1d627ea6936d70ea7f1

Requested commit: d5f1a8823eb964c6149fc1d627ea6936d70ea7f1

Commit: d5f1a8823eb964c6149fc1d627ea6936d70ea7f1

Tree: 163967d4c1bac8455b0d3e66734d5788a3f1e6d4

Author: mlugg

Committer: Andrew Kelley

## Message

```
Sema: allow ptr field access on pointer-to-array

Also remove an incorrect piece of logic which allowed fetching the 'len'
property on non-single-ptrs (e.g. many-ptrs) and add a corresponding
compile error test case.

Resolves: #4765

```

## Parents

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

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