You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The proposal for "Primary Constructors" does not indicate how or if a custom attribute can be applied to a primary constructor.
I don't see how this is possible.
If confirmed that this is not possible, it deserves at least to be mentioned.
There's a discussion here on this for record types, but - even though that discussion dates back to 2020 - the topic appears to have been ignored once more for primary constructors.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
The proposal for "Primary Constructors" does not indicate how or if a custom attribute can be applied to a primary constructor.
I don't see how this is possible.
If confirmed that this is not possible, it deserves at least to be mentioned.
There's a discussion here on this for record types, but - even though that discussion dates back to 2020 - the topic appears to have been ignored once more for primary constructors.
Beta Was this translation helpful? Give feedback.
All reactions