This repository has been archived by the owner on Apr 13, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 62
Setters as parameters to annotations #4107
Labels
Milestone
Comments
[@FroMage] Why again didn't we allow |
[@gavinking] Well according to the spec a setter is not really a separate declaration. |
[@FroMage] If it is not a separate declaration, why can it have annotations? |
[@FroMage] I mean, I'm pretty sure it can, since our backend supports and tests this ;) |
[@gavinking] Because there is no requirement that thing with annotations => declaration. Other program elements, for example |
[@FroMage] 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. |
[@gavinking] Not for 1.1, unless someone has a pressing need. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
[@tombentley] 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.[Migrated from ceylon/ceylon-spec#1001]
The text was updated successfully, but these errors were encountered: