Skip to content

No error for variable initializer that references itself with typeof #1902

@danquirk

Description

@danquirk

Per the newest spec in #1878:

5.1.1
When a variable declaration has a type annotation, it is an error for that type annotation to use the typeof operator to reference the variable being declared.

We haven't implemented this check though, should be in a test for #1898.

Metadata

Metadata

Assignees

Labels

BugA bug in TypeScriptFixedA PR has been merged for this issue

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions