Ref sugar compile result incorrect with destructuring + arrow function expression #3581
Labels
🔨 p3-minor-bug
Priority 3: this fixes a bug, but is an edge case that only affects very specific usage.
🐞 bug
Something isn't working
scope: script-setup
scope: sfc
Version
3.0.11
Reproduction link
https://sfc.vuejs.org/#eyJBcHAudnVlIjoiPHNjcmlwdCBzZXR1cD5cbnJlZjogKHt9ID0gKCkgPT4gMSk7XG5yZWY6ICh7fSA9IHVzZVNvbXRoaW5nKCgpID0+IDEpKTtcbnJlZjogKHt9ID0gdXNlU29tdGhpbmcoY29tcHV0ZWQoKCkgPT4gMSkpKTtcbjwvc2NyaXB0PiJ9
Steps to reproduce
Check the JS compile result.
What is expected?
Result is:
What is actually happening?
Result is:
The text was updated successfully, but these errors were encountered: