castwide / solargraph

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

Document Type Detection for =^ Types #626

Closed gwillcox-r7 closed 1 year ago

gwillcox-r7 commented 1 year ago

In VSCode sometimes I get information that the type was inferred via =^. Looking at https://solargraph.org/guides/type-detection I don't see any definitions for this, only for => which is for tagged types, and =~ for inferred types. It would be good to update https://solargraph.org/guides/type-detection to denote what =^ is meant to be as far as type information goes. Is this meant to be inheritance type information? I see that one is listed as possible way to detect things yet its symbol isn't listed on the website.

image

castwide commented 1 year ago

You're correct, =^ indicates that the return type was inherited. I'll update the documentation.

castwide commented 1 year ago

Updated: https://solargraph.org/guides/type-detection