Don't create two parse nodes for each => token. (#7894)

Instead of producing two parse nodes in a row for each `=>` token,
produce just one.

Assisted-by: Gemini via Antigravity
This commit is contained in:
Richard Smith authored and GitHub committed 2026-10-06 21:43:36 +00:00
1 parent a5912b8b82
commit f83518bfd7
12 files changed
+12 -28

No files matched your search

+2 -2
View File
@@ -344,9 +344,9 @@ fn F() {
library "[[@TEST_NAME]]";
fn F() {
// CHECK:STDERR: fail_todo_terse_body.carbon:[[@LINE+4]]:16: error: semantics TODO: `HandleTerseBodyArrow` [SemanticsTodo]
// CHECK:STDERR: fail_todo_terse_body.carbon:[[@LINE+4]]:4: error: semantics TODO: `terse lambda body` [SemanticsTodo]
// CHECK:STDERR: (fn (x: i32) => x);
// CHECK:STDERR: ^~
// CHECK:STDERR: ^~~~~~~~~~~~~~~~
// CHECK:STDERR:
(fn (x: i32) => x);
}