/// <reference path='fourslash.ts'/>

// @strict: false
//// class A {
////     foo: string;
//// }
//// class C {
////     foo: string;
//// }
//// var xs /*1*/ = [(x: A) => { return x.foo; }, (x: C) => { return x.foo; }];
//// xs.forEach(y => y(new /*2*/A()));

verify.numberOfErrorsInCurrentFile(0);
goTo.marker('1');
edit.insert(': {}[]');
verify.numberOfErrorsInCurrentFile(1);
goTo.marker('2');
edit.deleteAtCaret(1);
edit.insert('C');
verify.numberOfErrorsInCurrentFile(1);