2014-07-13 01:04:16 +02:00
|
|
|
/// <reference path='fourslash.ts' />
|
|
|
|
|
|
|
|
//// var f4 = <T>(x: T/**/ ) => {
|
|
|
|
//// }
|
|
|
|
|
|
|
|
// Turn off edit validation. We don't want semantic diagnostics to run until we explicit call it.
|
|
|
|
fs.diagnostics.setEditValidation(IncrementalEditValidation.None);
|
|
|
|
|
|
|
|
fs.goTo.marker();
|
|
|
|
|
|
|
|
// Replace the "T" type with the non-existent type 'V'.
|
|
|
|
fs.edit.backspace(1);
|
|
|
|
fs.edit.insert("A");
|
|
|
|
|
|
|
|
// Bring up completion to force a pull resolve. This will end up resolving several symbols and
|
|
|
|
// producing unreported diagnostics (i.e. that 'V' wasn't found).
|
|
|
|
fs.verify.completionListContains("T");
|
2014-10-07 22:20:02 +02:00
|
|
|
fs.verify.completionEntryDetailIs("T", "(type parameter) T in <T>(x: any): void");
|
2014-07-13 01:04:16 +02:00
|
|
|
|
|
|
|
// There should now be a single error.
|
|
|
|
fs.verify.numberOfErrorsInCurrentFile(1);
|