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

Support new flow syntax in scope analysis #645

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions 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