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

Commit

Permalink
Added failing test for variables used in type parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
rubennorte committed Jul 6, 2018
1 parent 8948d83 commit 9b06e1f
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 9b06e1f

Please sign in to comment.