You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The changes in #10543 introduced a crash, when the send node omits parenthesis
Spec to reproduce:
it 'counts single line correctly if asked folding' do
source = parse_source(<<~RUBY)
def test
foo foo: :bar, baz: :quux
end
RUBY
length = described_class.new(source.ast, source, foldable_types: %i[hash]).calculate
expect(length).to eq(1)
end
The changes in #10543 introduced a crash, when the send node omits parenthesis
Spec to reproduce:
Expected behavior
Spec to pass
Actual behavior
The text was updated successfully, but these errors were encountered: