Skip to content

Commit

Permalink
CallXxxWriteNode#write_name is changed to symbol
Browse files Browse the repository at this point in the history
  • Loading branch information
tompng committed Oct 12, 2023
1 parent be58290 commit 631fff1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/katakata_irb/type_simulator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ def evaluate_inner(node, scope)
elsif has_block
call_block_proc = ->(_block_args, _self_type) { KatakataIrb::Types::OBJECT }
end
method = node.write_name.delete_suffix('=')
method = node.write_name.to_s.delete_suffix('=')
left = simulate_call receiver_type, method, args_types, kwargs_types, call_block_proc, scope
if node.operator == '&&='
right = scope.conditional { evaluate node.value, _1 }
Expand Down

0 comments on commit 631fff1

Please sign in to comment.