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.

Parsing error on new operator without parentheses #60

Closed
@daluege

Description

@daluege

Whenever a TypeScript contains a new operator without parentheses, the following error is thrown by eslint:

Parsing error: Cannot read property 'map' of undefined

According to the TypeScript spec, however, this syntax is valid.

Context:

eslint@3.3.1
typescript-eslint-parser@0.1.2

.eslintrc.yml:

extends: eslint:recommended
parser: typescript-eslint-parser

test.ts:

function X () { }
new X;

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions