
Issue #21137 has been reported by kinoppyd (Yasuhiro Kinoshita). ---------------------------------------- Bug #21137: Compound assignment operator with "it" parsed differently between parse.y and prism https://bugs.ruby-lang.org/issues/21137 * Author: kinoppyd (Yasuhiro Kinoshita) * Status: Open * ruby -v: ruby 3.4.1 (2024-12-25 revision 48d4efcb85) +PRISM [arm64-darwin21] * Backport: 3.1: UNKNOWN, 3.2: UNKNOWN, 3.3: UNKNOWN, 3.4: UNKNOWN ---------------------------------------- ``` ruby # parse.y OK: no error # prism OK: no error proc { it = 1 } # parse.y OK: no error # prism OK: no error proc { it = it + 1 } # parse.y OK: no error # prism NG: syntax errors found (SyntaxError) proc { it += 1 } ``` -- https://bugs.ruby-lang.org/