[DOC] Detailed explanation when one line pattern matching is a void value expression
This commit is contained in:
parent
a83152d4db
commit
2e648bfee4
Notes:
git
2023-08-30 03:47:29 +00:00
2
parse.y
2
parse.y
@ -12114,7 +12114,7 @@ value_expr_check(struct parser_params *p, NODE *node)
|
|||||||
if (node->nd_body->nd_body) {
|
if (node->nd_body->nd_body) {
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
/* single line pattern matching */
|
/* single line pattern matching with "=>" operator */
|
||||||
return void_node ? void_node : node;
|
return void_node ? void_node : node;
|
||||||
|
|
||||||
case NODE_BLOCK:
|
case NODE_BLOCK:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user