Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Clarify type inference of class variables #762

Open
wants to merge 1 commit into
base: release/1.12
Choose a base branch
from

Conversation

straight-shoota
Copy link
Member

This part of the documentation was causing confusion, so I'm expanding a bit on the preconditions for type inference.

https://forum.crystal-lang.org/t/do-you-need-to-specify-a-type-for-class-variables/6876/2

@crysbot
Copy link

crysbot commented May 28, 2024

This pull request has been mentioned on Crystal Forum. There might be relevant details there:

https://forum.crystal-lang.org/t/do-you-need-to-specify-a-type-for-class-variables/6876/3

@beta-ziliani
Copy link
Member

Perhaps a clarification is in order, but it isn't different from instance vars, so why be specific about it here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants