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

Commit 9b06e1f

Browse files
committedJul 6, 2018
Added failing test for variables used in type parameters
1 parent 8948d83 commit 9b06e1f

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed
 

‎test/non-regression.js

+11
Original file line numberDiff line numberDiff line change
@@ -564,6 +564,17 @@ describe("verify", () => {
564564
);
565565
});
566566

567+
it("polymorphic/generic types - function calls #644", () => {
568+
verifyAndAssertMessages(
569+
`
570+
import type {Type} from 'Type';
571+
function f<T>(): T {}
572+
f<Type>();
573+
`,
574+
{ "no-unused-vars": 1, "no-undef": 1 }
575+
);
576+
});
577+
567578
it("support declarations #132", () => {
568579
verifyAndAssertMessages(
569580
`

0 commit comments

Comments
 (0)
This repository has been archived.