zooster 4055e6055b
AstGen: disallow leading zeroes in int literals and int types
This makes `0123` and `u0123` etc. illegal.

I'm now confident that this is a good change because
I actually caught two C header translation mistakes in `haiku.zig` with this.
Clearly, `0123` being octal in C (TIL) can cause confusion, and we make this easier to read by
requiring `0o` as the prefix and now also disallowing leading zeroes in integers.

For consistency and because it looks weird, we disallow it for integer types too (e.g. `u0123`).

Fixes #11963
Fixes #12417
2022-08-18 19:54:51 +03:00
..
2022-08-18 18:02:19 +02:00
2022-08-18 14:17:01 +02:00
2022-08-18 18:02:19 +02:00
2022-04-27 16:45:23 -07:00
2022-05-13 16:43:59 -04:00
2022-08-11 00:46:44 -07:00
2022-01-07 00:06:06 -05:00
2022-08-17 23:03:04 +03:00
2022-07-30 12:36:11 -07:00