From: "k0kubun (Takashi Kokubun) via ruby-core" Date: 2025-02-14T18:28:47+00:00 Subject: [ruby-core:121058] [Ruby master Bug#21137] Compound assignment operator with "it" parsed differently between parse.y and prism Issue #21137 has been updated by k0kubun (Takashi Kokubun). Backport changed from 3.1: UNKNOWN, 3.2: UNKNOWN, 3.3: UNKNOWN, 3.4: REQUIRED to 3.1: UNKNOWN, 3.2: UNKNOWN, 3.3: UNKNOWN, 3.4: DONE ruby_3_4 commit:62f736f23e9099c5aa29975dc7fbe2fe8c40b5b2. ---------------------------------------- Bug #21137: Compound assignment operator with "it" parsed differently between parse.y and prism https://bugs.ruby-lang.org/issues/21137#change-111972 * Author: kinoppyd (Yasuhiro Kinoshita) * Status: Closed * Assignee: prism * 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: DONE ---------------------------------------- ``` 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/ ______________________________________________ ruby-core mailing list -- ruby-core@ml.ruby-lang.org To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org ruby-core info -- https://ml.ruby-lang.org/mailman3/lists/ruby-core.ml.ruby-lang.org/