Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Constant types #128

Open
AaronC81 opened this issue Jan 13, 2021 · 2 comments
Open

Constant types #128

AaronC81 opened this issue Jan 13, 2021 · 2 comments
Labels
enhancement New feature or request

Comments

@AaronC81
Copy link
Owner

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

@AaronC81 AaronC81 added the enhancement New feature or request label Jan 13, 2021
@AaronC81
Copy link
Owner Author

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

@postmodern
Copy link

postmodern commented Oct 26, 2022

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.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants