From 9b06e1fdaf7972d87c49af4ff977b1204916c80b 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 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( `