AstGen: improve error for invalid bytes in strings and comments

This commit is contained in:
Will Lillis
2025-02-05 04:10:11 -05:00
committed by GitHub
parent d72f3d353f
commit cf059ee087
8 changed files with 93 additions and 4 deletions

View File

@@ -0,0 +1,10 @@
export fn entry() void {
const foo = " hello";
_ = foo;
}
// error
// backend=stage2
// target=native
//
// :2:18: error: string literal contains invalid byte: '\t'