refactor: clarify diagnostics and adopt ptrcast inference

This commit is contained in:
2026-09-19 23:16:18 +02:00
parent 8bb539359b
commit 438f660e76
7 changed files with 27 additions and 28 deletions
+1 -1
View File
@@ -22,7 +22,7 @@ reports_invalid_input_and_keeps_scanning test {
try testing.expect_equal(TokenKind.float, state.tokens.items[5].kind)
try testing.expect_equal(TokenKind.string, state.tokens.items[6].kind)
try testing.expect_equal(TokenKind.eof, state.tokens.items[7].kind)
try testing.expect_equal(2, diagnostics.len(&diagnostic_store))
try testing.expect_equal(2, diagnostics.count(&diagnostic_store))
try testing.expect_equal("name", strpool.get_str(&strpool.STRINGS, state.tokens.items[1].data.str_id)?)
try testing.expect_equal(u32(3), state.tokens.items[1].span.start)
try testing.expect_equal(u32(7), state.tokens.items[1].span.end)