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

TypeParameter location calculated incorrectly (includes leading spaces) #260

Closed
Igorbek opened this issue May 6, 2017 · 0 comments
Closed
Labels

Comments

@Igorbek
Copy link
Contributor

Igorbek commented May 6, 2017

What version of TypeScript are you using?
2.3.2

What version of typescript-eslint-parser are you using?
master 00ad71dd44a34779b26fcf1f0af34851cae217b3

What code were you trying to parse?

function compare</*comment*/T,    U>() {}

What did you expect to happen?

function compare</*comment*/T,    U>() {}
//                          ~ TypeParameter T
//                                ~ TypeParameter U

What happened?

function compare</*comment*/T,    U>() {}
//               ~~~~~~~~~~~~ TypeParameter T
//                            ~~~~~ TypeParameter U
Igorbek added a commit to Igorbek/typescript-eslint-parser that referenced this issue May 6, 2017
- use `name` field instead of `typeName` (fixes eslint#260)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants