TypeScript/tests/cases/fourslash/typeParameterListInQuickInfoAfterEdit.ts
2014-10-07 11:30:27 -07:00

21 lines
517 B
TypeScript

/// <reference path="fourslash.ts" />
//// class Dictionary<V> {
//// }
////
//// module Maps {
//// class C1 extends D/*1*/ictionary<string> { }
//// /*2*/
//// }
////
// Sanity check: type name here should include the type parameter
goTo.marker('1');
verify.quickInfoIs('class Dictionary<V>');
// Add a similar class -- name does not match
goTo.marker('2');
edit.insert("class C2 extends Dictionary<string> { }");
edit.moveLeft('ictionary<string> { }'.length);
verify.quickInfoIs('class Dictionary<V>');