2015-03-02 23:41:44 +01:00
|
|
|
/// <reference path='fourslash.ts'/>
|
|
|
|
|
2014-07-13 01:04:16 +02:00
|
|
|
//// class A {
|
|
|
|
//// foo: string;
|
|
|
|
//// }
|
2015-07-17 00:28:18 +02:00
|
|
|
//// class C {
|
|
|
|
//// foo: string;
|
2014-07-13 01:04:16 +02:00
|
|
|
//// }
|
2015-07-17 00:28:18 +02:00
|
|
|
//// var xs /*1*/ = [(x: A) => { return x.foo; }, (x: C) => { return x.foo; }];
|
2014-07-13 01:04:16 +02:00
|
|
|
//// 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);
|