diff --git a/lib/solargraph/type_checker.rb b/lib/solargraph/type_checker.rb index fda3a1e8..b78484fc 100644 --- a/lib/solargraph/type_checker.rb +++ b/lib/solargraph/type_checker.rb @@ -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