Skip to content

Classes: add test to enforce that self is required inside a class #2289

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

Closed
catamorphism opened this issue Apr 25, 2012 · 0 comments
Closed
Labels
A-type-system Area: Type system E-easy Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
Milestone

Comments

@catamorphism
Copy link
Contributor

That is, test that if a class C has field x, you have to refer to self.x inside C's methods, not x by itself.

@ghost ghost assigned catamorphism Apr 25, 2012
@catamorphism catamorphism removed their assignment Jun 16, 2014
bors added a commit to rust-lang-ci/rust that referenced this issue Sep 22, 2022
jieyouxu pushed a commit to jieyouxu/rust that referenced this issue Apr 2, 2025
…ples

Fix compile errors of all the examples
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-type-system Area: Type system E-easy Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
Projects
None yet
Development

No branches or pull requests

1 participant