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
then this line would be all that is necessary to declare and initialize this private slot in a data-dependent way. As with tc39/proposal-class-public-fields#2 and tc39/proposal-private-fields#25 , this would smoothly accommodate future support for const private slots, which must be initialized and cannot be assigned.
The text was updated successfully, but these errors were encountered:
erights
changed the title
Private field declarations need to be in constructor scope
Private slot declarations need to be in constructor scope
Feb 28, 2016
tc39/proposal-class-public-fields#2 and tc39/proposal-private-fields#25 apply here as well. Notice the existing notational redundancy in examples such as
If this is written instead as
then this line would be all that is necessary to declare and initialize this private slot in a data-dependent way. As with tc39/proposal-class-public-fields#2 and tc39/proposal-private-fields#25 , this would smoothly accommodate future support for const private slots, which must be initialized and cannot be assigned.
The text was updated successfully, but these errors were encountered: