diff options
author | Kevin Newton <[email protected]> | 2024-09-16 11:14:31 -0400 |
---|---|---|
committer | Kevin Newton <[email protected]> | 2024-09-16 11:53:56 -0400 |
commit | 1e52dde82af10f2a2ec648b34dce30bec4154245 () | |
tree | 4584c269851778ecc76abae5907328f0b0f4ecfe /prism_compile.c | |
parent | 50564f8882922964ebbe2bfdd7cae0bd6d0f6f00 (diff) |
[PRISM] Match defined behavior for explicit block
Fixes [Bug #20748]
Notes: Merged: https://.com/ruby/ruby/pull/11633
-rw-r--r-- | prism_compile.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -3889,6 +3889,12 @@ pm_compile_defined_expr0(rb_iseq_t *iseq, const pm_node_t *node, const pm_node_l } case PM_CALL_NODE: { const pm_call_node_t *cast = ((const pm_call_node_t *) node); ID method_id = pm_constant_id_lookup(scope_node, cast->name); if (cast->receiver || cast->arguments) { |