castwide / solargraph

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

Feature request: infer type from method arguments default value #554

Closed felipeccastro closed 2 years ago

felipeccastro commented 2 years ago

If I have a method with arguments with default values, it would be nice if Solargraph could already infer the argument type without an explicit @param tag.

eg: def foo(bar = :baz) => bar type is Symbol

castwide commented 2 years ago

This feature is in the master branch and will be included in the next release.

castwide commented 2 years ago

Released in version 0.46.0.