mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-16 15:28:18 +00:00
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:
1 parent
a5912b8b82
commit
f83518bfd7
12 files changed
+12
-28
No files matched your search
+2
-2
@@ -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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user