mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
a1433ca0ba
## Summary This PR closes #25844 The original issue talks about `as const`, but seems like it fails for any `as X` expressions since it adds another nesting level to the AST. EDIT: Also closes #20162 ## How did you test this change? Added unit tests