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 4882b29 commit 61c70f2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/non-regression.js
Original file line number Diff line number Diff line change
Expand Up @@ -556,8 +556,9 @@ describe("verify", () => {
it("polymorphic/generic types - function calls", () => {
verifyAndAssertMessages(
`
import type {Type} from 'Type';
function f<T>(): T {}
f<T>();
f<Type>();
`,
{ "no-unused-vars": 1, "no-undef": 1 }
);
Expand Down

0 comments on commit 61c70f2

Please sign in to comment.