-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Validate implicit getters #57
Comments
struct Thing {
var foo: Int {
get { return 3 }
set { _abc = newValue }
}
var bar: Int { return 42 }
var baz: Int {
get { return 42 }
}
}
As you can notice there is no structural difference between variable, variable with implicit and explicit getter. I can start with Is there any way to check for syntax tokens in range? I've found |
Read-only properties and subscripts should avoid using the
get
keyword.The text was updated successfully, but these errors were encountered: