# add compile error for assigning number literal to non-comptime var · gitcafe/zig

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

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

Visibility: public

Requested revision: 6d0afc2bd233121d6b82f66cc09f74310a6eea4a

Requested commit: 6d0afc2bd233121d6b82f66cc09f74310a6eea4a

Commit: 6d0afc2bd233121d6b82f66cc09f74310a6eea4a

Tree: bf2518175eb0b005a5c44c20c98ccf30b76d5bb0

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
add compile error for assigning number literal to non-comptime var

```

## Parents

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

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