castwide / solargraph

A Ruby language server.
https://solargraph.org
MIT License
1.87k stars 154 forks source link

Fix corner case handling private_constant #632

Closed hallerm closed 1 year ago

hallerm commented 1 year ago

If someone accidentally gives private_constant a block, such as private_constant(&:Oops), then solargraph would crash while handling the arguments. This change corrects the issue.

Fix castwide/solargraph#631

castwide commented 1 year ago

:+1: