From ef4f0ca3ac2a81b04dd3c61d0282118c2d319991 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rub=C3=A9n=20Norte?= Date: Fri, 6 Jul 2018 11:33:37 +0100 Subject: [PATCH] Added failing test for variables used in type parameters --- test/non-regression.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/test/non-regression.js b/test/non-regression.js index 8bafb554..93d8ec1a 100644 --- a/test/non-regression.js +++ b/test/non-regression.js @@ -563,6 +563,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( `