
4 May
2024
4 May
'24
12:29 p.m.
Issue #20468 has been updated by zverok (Victor Shepelev). Agree with @Eregon. The code should be more or less equivalent to: ```ruby for temp in [1, 2, 3] foo&.bar = temp end ``` ...which is totally valid and `foo&.bar =` is a no-op (semantically). ---------------------------------------- Bug #20468: Segfault on safe navigation in for target https://bugs.ruby-lang.org/issues/20468#change-108181 * Author: kddnewton (Kevin Newton) * Status: Open * Backport: 3.1: UNKNOWN, 3.2: UNKNOWN, 3.3: UNKNOWN ---------------------------------------- ```ruby for foo&.bar in []; end ``` -- https://bugs.ruby-lang.org/