Confusing error on computed name class member #61510
Labels
Help Wanted
You can do this
Possible Improvement
The current behavior isn't wrong, but it's possible to see that it might be better in some cases
Milestone
π Search Terms
late bindable computed symbol class member
π Version & Regression Information
β― Playground Link
https://www.typescriptlang.org/play/?target=99&lib=lib.esnext.d.ts&ts=5.9.0-dev.20250326#code/MYewdgzgLgBArmAlgRzgUwMoE8C2AjEAGwAYYBeGbfIgOgDMQAnACgCJWBKAbgCge6EwKInAwA5migBVJKky4CJZhwBcMKFgAOaEHXiz0VRaQDePGDEaS4jMPpSGFRYrwC+fYIQCGECDADChBAAzDBmFgDaEtIG8tRKHAC65DCsdIiM0KxuPEA
π» Code
π Actual behavior
The error is confusing because this expression has a
unique symbol
type alreadyπ Expected behavior
This error should mention more accurate late-bindable requirements. From the source code:
Additional information about the issue
No response
The text was updated successfully, but these errors were encountered: