// @declaration: true function foo (x: T) { return x; } var x = foo(5); // 'x' should be number