oxc icon indicating copy to clipboard operation
oxc copied to clipboard

incorrect symbol when a function is assigned to a variable

Open camc314 opened this issue 6 months ago • 0 comments

apologies if this is a duplicate

given the following input:

const test = function hello(arg0) {
}

hello()

the second hello should be an unresolved reference.

currently it's resolved to the function above

playground

https://oxc-project.github.io/oxc/playground/?code=3YCAAICugICAgICAgICxG0qZRraXVswnifU1q2%2Fm%2BJLccV2rnStJM1nSHXd7kNzN6i4LIHQr9wC%2BGhx%2FfzfAgIA%3D

the symbol highlighted on the RHS should not be there

Screenshot 2024-08-10 at 22 04 04

camc314 avatar Aug 10 '24 21:08 camc314