# add compile error for non-optional types compared against null · gitcafe/zig

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

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

Visibility: public

Requested revision: 78a9a465a372d25ef6f9a1f6bb1018160b8c94e1

Requested commit: 78a9a465a372d25ef6f9a1f6bb1018160b8c94e1

Commit: 78a9a465a372d25ef6f9a1f6bb1018160b8c94e1

Tree: 3087d77f8411acc3227f3e0b04c1b3be6c8457b6

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
add compile error for non-optional types compared against null

closes #1539

```

## Parents

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

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