truffleruby icon indicating copy to clipboard operation
truffleruby copied to clipboard

SyntaxError Invalid return in class/module body with return in optional argument default value

Open eregon opened this issue 1 year ago • 0 comments

https://github.com/jeremyevans/roda/blob/2bb51f46150c0a477b697f09b42efa29b947941a/lib/roda/plugins/sinatra_helpers.rb#L389

        def status(value = nil || (return @status))
          @status = value
        end

CI failure https://github.com/jeremyevans/roda/actions/runs/10911350202/job/30283813459 Reported by @jeremyevans

Most likely caused by https://github.com/oracle/truffleruby/commit/0f7290540e245c582a7c1bd016a76249c262b7d2

Already fixed in Prism upstream, so we should include that fix: https://github.com/ruby/prism/pull/3075

There is also https://github.com/ruby/prism/pull/3073

eregon avatar Sep 18 '24 10:09 eregon