2014-07-13 01:04:16 +02:00
|
|
|
/// <reference path="fourslash.ts" />
|
|
|
|
|
|
|
|
//// declare class foo { };
|
|
|
|
//// function foo() { /**/ }
|
|
|
|
|
|
|
|
goTo.marker();
|
|
|
|
|
|
|
|
// One error: duplicate identifier 'foo'
|
2014-10-01 20:27:20 +02:00
|
|
|
verify.numberOfErrorsInCurrentFile(2);
|
2014-07-13 01:04:16 +02:00
|
|
|
|
|
|
|
// Shouldn't change the number of errors
|
|
|
|
edit.insert('return null;');
|
2014-10-01 20:27:20 +02:00
|
|
|
verify.numberOfErrorsInCurrentFile(2);
|
2014-07-13 01:04:16 +02:00
|
|
|
|