Skip to content
This repository was archived by the owner on Jan 19, 2019. It is now read-only.
This repository was archived by the owner on Jan 19, 2019. It is now read-only.

Extra leading underscore in type parameter names #296

Closed
@azz

Description

@azz

What version of TypeScript are you using?

2.3.2

What version of typescript-eslint-parser are you using?

master

What code were you trying to parse?

class A<__P> {}

What did you expect to happen?

assert(require('.').parse('class A<__P> {}').body[0].typeParameters.params[0].name === "__P");

What happened?

The name if the parameter is ___P (notice the extra leading underscore. This continues if there are more than two leading _ characters (always N+1 reported).

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions