diff --git a/test/non-regression.js b/test/non-regression.js index 5fc30b48..4c43b29f 100644 --- a/test/non-regression.js +++ b/test/non-regression.js @@ -564,6 +564,17 @@ describe("verify", () => { ); }); + it("polymorphic/generic types - function calls #644", () => { + verifyAndAssertMessages( + ` + import type {Type} from 'Type'; + function f(): T {} + f(); + `, + { "no-unused-vars": 1, "no-undef": 1 } + ); + }); + it("support declarations #132", () => { verifyAndAssertMessages( `