# stage1: Fix type-checking of unary neg for vector types · gitcafe/zig

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

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

Visibility: public

Requested revision: 2a256d5ea02c8f520c54fd335c38891d6e05a63f

Requested commit: 2a256d5ea02c8f520c54fd335c38891d6e05a63f

Commit: 2a256d5ea02c8f520c54fd335c38891d6e05a63f

Tree: 1ba784027dc33d9e16b4f59319cb752bfc1f204c

Author: LemonBoy

Committer: Andrew Kelley

## Message

```
stage1: Fix type-checking of unary neg for vector types

Validate the vector element type as done for the scalar case.

Fixes #6708

```

## Parents

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

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