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
Setters as parameters to annotations #1001
Comments
Why again didn't we allow |
Well according to the spec a setter is not really a separate declaration. |
If it is not a separate declaration, why can it have annotations? |
I mean, I'm pretty sure it can, since our backend supports and tests this ;) |
Because there is no requirement that thing with annotations => declaration. Other program elements, for example |
Sure, but still, from an outside perspective, it declares a setter and can have properties distinct of the getter, so it really feels like a declaration. |
Not for 1.1, unless someone has a pressing need. |
According to the spec, an annotation constructor parameter type may be a subtype of
Declaration
inceylon.language.meta.declaration
.SetterDeclaration
is such a subtype, but there's no syntax for making setter references according to section 6.11. If this is intentional, I think it's worth point out, becauseSetterDeclaration
is the only subtype ofDeclaration
lacking such support.The text was updated successfully, but these errors were encountered: