From: "steviejj (Steven Johnstone) via ruby-core" Date: 2026-11-30T20:20:56+00:00 Subject: [ruby-core:127773] [Ruby Bug#22660] prism.y: `(redo) while (def f = 1)` rejected as `Invalid redo` Issue #22660 has been reported by steviejj (Steven Johnstone). ---------------------------------------- Bug #22660: prism.y: `(redo) while (def f = 1)` rejected as `Invalid redo` https://bugs.ruby-lang.org/issues/22660 * Author: steviejj (Steven Johnstone) * Status: Open * ruby -v: ruby 4.1.0dev (2026-11-30T19:32:44Z HEAD 2fd27c959d) +PRISM [aarch64-linux] * Backport: 3.3: UNKNOWN, 3.4: UNKNOWN, 4.0: UNKNOWN ---------------------------------------- ``` $ printf '(redo) while (def f = 1)' | ruby --parser=prism --disable-gems -c Syntax OK $ printf '(redo) while (def f = 1)' | ruby --parser=parse.y --disable-gems -c -:1: Invalid redo (redo) while (def f = 1) ruby: compile error (SyntaxError) ``` -- 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/