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

Commit

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

Support new flow syntax in scope analysis
  • Loading branch information
rubennorte committed Jul 6, 2018
2 parents 8948d83 + 9b06e1f commit 198964b
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions test/non-regression.js
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 198964b

Please sign in to comment.