Skip to content

Commit

Permalink
Acccount for older Ruby kwarg handling
Browse files Browse the repository at this point in the history
  • Loading branch information
apiology committed Oct 14, 2024
1 parent 3d4456a commit 60a16f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/solargraph/type_checker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ def argument_problems_for chain, api_map, block_pin, locals, location
next
else
last = base.links.last.arguments.last
argchain = last if last && last.node.type == :kwsplat
argchain = last if last && [:kwsplat, :HASH].include?(last.node.type)
end
end
if argchain
Expand Down

0 comments on commit 60a16f8

Please sign in to comment.