Skip to content
  • Jeremy Evans's avatar
    3efbd527
    Do not autosplat when calling proc with empty keyword splat · 3efbd527
    Jeremy Evans authored
    With the removal of the splatted argument when using an empty
    keyword splat, the autosplat code considered an empty keyword
    splat the same as no argument at all.  However, that results
    in autosplat behavior changing dependent on the content of
    the splatted hash, which is not what anyone would expect or
    want.  This change always skips an autosplat if keywords were
    provided.
    
    Fixes [Bug #16560]
    
    (cherry picked from commit c1d8829e)
    3efbd527
    Do not autosplat when calling proc with empty keyword splat
    Jeremy Evans authored
    With the removal of the splatted argument when using an empty
    keyword splat, the autosplat code considered an empty keyword
    splat the same as no argument at all.  However, that results
    in autosplat behavior changing dependent on the content of
    the splatted hash, which is not what anyone would expect or
    want.  This change always skips an autosplat if keywords were
    provided.
    
    Fixes [Bug #16560]
    
    (cherry picked from commit c1d8829e)
Loading