diff --git a/lib/prism/ripper_compat.rb b/lib/prism/ripper_compat.rb index d6d7427388..aebd04660e 100644 --- a/lib/prism/ripper_compat.rb +++ b/lib/prism/ripper_compat.rb @@ -200,7 +200,7 @@ module Prism # Visit a RequiredParameterNode. def visit_required_parameter_node(node) bounds(node.location) - on_ident(node.name.to_s) + on_ident(node.name.name) end # Visit a BreakNode.