sord icon indicating copy to clipboard operation
sord copied to clipboard

Constant types

Open AaronC81 opened this issue 3 years ago • 2 comments

It would be good to be able to specify types for constants - currently they're all untyped.

AaronC81 avatar Jan 13 '21 19:01 AaronC81

Support for this in RBS added by #130, so just needs RBI.

AaronC81 avatar Mar 21 '21 20:03 AaronC81

Was going to submit a bug about this. I found it odd that sord --rbs cannot output the type of constants, even when they have literal values (ex: a literal Regexp), and also cannot infer the types of constants when their value is a method call which has a YARD @return tag.

postmodern avatar Oct 26 '22 01:10 postmodern