Skip to content

Same variables names with system variables names #75127

@minkir014

Description

@minkir014

I have a variable called name and it seems to be duplicated with a const in lib.dom.d.ts and this affects some functions in vs code like hovering and going to definition.
See this picture that shows the problem of hovering

er

and this shows the problem of going to definition when I press F12 It goes to this file

err

I started a previous issue and it was transferred to typescript. This is the issue microsoft/TypeScript#31783

According to what was said in this issue, It isn't a typescript issue. It works well in webstorm. So, I opened another issue here again and it was closed and said that there is an error but that's not true because webstorm manages that well and node compiler understands that and Google Chrome Console too. See these pictures

pro

It gives me the output correctly.

pro1

It also here gives me the right output. So, don't close the issue until my problem is solved.

Metadata

Metadata

Assignees

Labels

typescriptTypescript support issues

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions