Skip to content
This repository has been archived by the owner on Aug 18, 2021. It is now read-only.

FlowType "declare" bug: 'isSequenceExpression' of undefined #132

Closed
@klvnptr

Description

How to reproduce it.
Create an empty node package with the following package.json

{
  "name": "babel-core-bug",
  "version": "1.0.0",
  "description": "Bug report",
  "main": "index.js",
  "devDependencies": {
    "babel": "^5.5.8",
    "babel-eslint": "^3.1.15",
    "eslint": "^0.23.0"
  }
}

Run in the console:

npm install

Create an .eslintrc file with the following:

{
  "parser": "babel-eslint"
}

Create a index.js file with the following:

"use strict";

declare class Native {
  open():Response;
  close():Response;
}

Finally run eslint:

node_modules/eslint/bin/eslint.js index.js

And you will get the following:

main.js
  0:0  error  Cannot read property 'isSequenceExpression' of undefined

✖ 1 problem (1 error, 0 warnings)

Which is kind of odd. Am I missing something?

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions