/// //// class C { // it is error to reference T in constraint //// constructor() { } //// foo(a: T) { //// } //// } //// //// interface I1 { //// a: number; //// }; //// //// interface I2 { //// a: number; //// b: string; //// } //// //// var x = new C< { a: number; }, { a: number; b: string; }>(); //// var y = new C(); //// /*1*/ verify.numberOfErrorsInCurrentFile(1); goTo.marker("1"); edit.insert("var z = new C < I2"); verify.numberOfErrorsInCurrentFile(2); edit.insert(",I1>()"); verify.numberOfErrorsInCurrentFile(2);