# AstGen: disallow '\-0' integer literal · gitcafe/zig

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

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

Visibility: public

Requested revision: 283afb50b56fb8a2c288d2452bdf6e595a1bbb06

Requested commit: 283afb50b56fb8a2c288d2452bdf6e595a1bbb06

Commit: 283afb50b56fb8a2c288d2452bdf6e595a1bbb06

Tree: 074cfa8a07a8763d455289a20fc0b08e1b0395be

Author: mlugg

Committer: Veikka Tuominen

## Message

```
AstGen: disallow '-0' integer literal

The intent here is ambiguous: this resolves to the comptime_int '0', but
it's likely the user meant to use a floating-point literal.

Resolves: #16890

```

## Parents

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

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