From 60a16f88e71975210526314da97475fb15e2f018 Mon Sep 17 00:00:00 2001 From: Vince Broz Date: Mon, 14 Oct 2024 09:47:01 -0400 Subject: [PATCH] Acccount for older Ruby kwarg handling --- lib/solargraph/type_checker.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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