=== tests/cases/compiler/genericFunctions1.ts === function foo (x: T) { return x; } >foo : (x: T) => T >T : T >x : T >T : T >x : T var x = foo(5); // 'x' should be number >x : number >foo(5) : number >foo : (x: T) => T