Skip to content

Commit

Permalink
Merge pull request babel/babel-eslint#645 from rubennorte/support-new…
Browse files Browse the repository at this point in the history
…-flow-syntax-in-scope-analysis

Support new flow syntax in scope analysis
  • Loading branch information
rubennorte committed Jul 6, 2018
1 parent dcf55cb commit a179178
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions eslint/babel-eslint-parser/test/non-regression.js
Original file line number Diff line number Diff line change
Expand Up @@ -564,6 +564,17 @@ describe("verify", () => {
);
});

it("polymorphic/generic types - function calls #644", () => {
verifyAndAssertMessages(
`
import type {Type} from 'Type';
function f<T>(): T {}
f<Type>();
`,
{ "no-unused-vars": 1, "no-undef": 1 }
);
});

it("support declarations #132", () => {
verifyAndAssertMessages(
`
Expand Down

0 comments on commit a179178

Please sign in to comment.