question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Type named `_` is not allowed

See original GitHub issue

_ is a valid JS identifier and has to be allowed as a proper type identifier:

class _ {}

const t: _ = new _();

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
thecotnecommented, May 5, 2020

it’s not a bug flow has special handling for underscores and probably hegel will have it too #186

https://flow.org/en/docs/types/generics/

Screen Shot 2020-05-05 at 10 20 13 Screen Shot 2020-05-05 at 10 21 50
0reactions
JSMonkcommented, May 6, 2020

Currently, we use flow syntax, so, for now, to fix it we need to develop own parser (or fork babel). I don’t think that we will do it the nearest time. Thank you for you proposal ^_^.

Read more comments on GitHub >

github_iconTop Results From Across the Web

C++ Error: Type Name is Not Allowed - Stack Overflow
I'm trying to play around with my new class lesson in Pointer Arguments, and i want to make the functions senior and everyoneElse...
Read more >
type name not allowed - C++ Forum
Member access operators only allow data members, member functions, and enumerators on the right. Type names are not allowed.
Read more >
E0254 type name not allowed? : r/cpp_questions - Reddit
It tells me that the type name is not allowed in many of the declarations. Can anyone help me with this?
Read more >
"Error: type name is not allowed" after updating Visual Studio ...
Solved: Hi I'm using Intel Parallel Studio XE 2020 with Visual Studio 2019. Last night, after visual studio update to 16.7.1, when I...
Read more >
Template parameters and template arguments
The name of a template parameter is not allowed to be redeclared within its scope (including nested scopes). A template parameter is not...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found