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
You can have 1) a method, you can have 2) a prop, you can have 3) a getter/setter (either/both), but you can't have two from the three different categories. We should warn on this.
We could presumably do this for all objects, but to avoid boiling the ocean, let's just focus on LightningElements (or assumed LightningElements). This is important for us because of how registerDecorators works in particular.
The text was updated successfully, but these errors were encountered:
Step 1 of #4450 is to have compile-time warnings for duplicate getters/setters/props/methods:
You can have 1) a method, you can have 2) a prop, you can have 3) a getter/setter (either/both), but you can't have two from the three different categories. We should warn on this.
We could presumably do this for all objects, but to avoid boiling the ocean, let's just focus on
LightningElement
s (or assumedLightningElement
s). This is important for us because of howregisterDecorators
works in particular.The text was updated successfully, but these errors were encountered: