mirror of
https://github.com/ziglang/zig.git
synced 2025-12-10 16:23:07 +00:00
Fixes many error messages corresponding to invalid bytes displaying the wrong byte. Additionaly improves handling of UTF-8 in some places.
12 lines
197 B
Zig
12 lines
197 B
Zig
export fn entry() void {
|
|
const a = '\u{12z34}';
|
|
}
|
|
|
|
// error
|
|
// backend=stage2
|
|
// target=native
|
|
//
|
|
// :2:15: error: expected expression, found 'invalid bytes'
|
|
// :2:21: note: invalid byte: 'z'
|
|
|