//// [typeParameterDirectlyConstrainedToItself.ts] // all of the below should be errors class C { } class C2 { } interface I { } interface I2 { } function f() { } function f2() { } var a: { (): void; (): void; } var b = () => { } var b2 = () => { } //// [typeParameterDirectlyConstrainedToItself.js] // all of the below should be errors var C = (function () { function C() { } return C; })(); var C2 = (function () { function C2() { } return C2; })(); function f() { } function f2() { } var a; var b = function () { }; var b2 = function () { };