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
This results in "hello" being printed when useDefineForClassFields is turned off, and undefined when it's turned on. Using the decorators requires useDefineForClassFields to be turned on.
🔎 Search Terms
"__runInitializers", "decorator"
Possibly related issues:#54264
🕗 Version & Regression Information
⏯ Playground Link
https://www.typescriptlang.org/play/?#code/GYVwdgxgLglg9mABAIzuAJgCjgJxgcxjAEMAbAWQFMoALOdALkWLAE8AaRCBKSgDyhMAwqWIBnMVVr0AIpW45iUXEJ78oASiYA3ODHSIA3gChEXBGKiIAttTroAcsVuIAvObC8BAOhK2A3KYeXlDexOjoAJJgMLBkMABelDiYoJCwCIiYtDBiTCysGkZBZjliANq20o7OlAC6bohllXb0TrZ13shEWGUagWYAvv3Gg8bGEKISiABC4pTFZtxgljgg0LiYRSZmpTS53kSxWwOIY0EADjhwvNCUBkdQW8VBY+eT4mKIAGJwcIjqShgdBfOZiBY7FDEHAAfiYqyI+ECQTg2mSeHQC0ez0hZjEIAuyUOMSeI12TX2Yi60MaAHIaJRSKQ4LTTuczAABVAYS4gZCkGAQRDoOAAZTgVX2YHwOPGQ1GEwscFIlG8zJlYEoAHcfn8ttScP0gA
💻 Code
🙁 Actual behavior
Prints
undefined
🙂 Expected behavior
Prints
hello
Additional information about the issue
The generated JS is as follows:
Here, it always assigns to the first field, which should be a bug.
The text was updated successfully, but these errors were encountered: