function f(n: any) { return null; } function g(x: any) { return null; } interface A { } interface B { } var A, B; f(g(7)); f(g < A, B > 7); // Should error f(g < A, B > +(7)); // Should error