Skip to content

Hover on as const shows type const = /*unresolved*/ any in 4.5.2Β #46998

@yume-chan

Description

@yume-chan

Bug Report

πŸ”Ž Search Terms

as const

πŸ•— Version & Regression Information

  • This changed between versions 4.4.4 and 4.5.2

⏯ Playground Link

Playground link

πŸ’» Code

42 as const

Hover on const

πŸ™ Actual behavior

image

πŸ™‚ Expected behavior

Shows type const = 42 or nothing as in 4.4.4

This also affects Semantic Highlighting in vscode microsoft/vscode#138362

Metadata

Metadata

Assignees

Labels

BugA bug in TypeScriptFix AvailableA PR has been opened for this issue

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions