TypeScript/tests/cases/fourslash/typeParameterListInQuickInfoAfterEdit.ts

21 lines
517 B
TypeScript
Raw Normal View History

2014-07-13 01:04:16 +02:00
/// <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');
2014-10-07 20:30:27 +02:00
verify.quickInfoIs('class Dictionary<V>');
2014-07-13 01:04:16 +02:00
// Add a similar class -- name does not match
goTo.marker('2');
edit.insert("class C2 extends Dictionary<string> { }");
edit.moveLeft('ictionary<string> { }'.length);
2014-10-07 20:30:27 +02:00
verify.quickInfoIs('class Dictionary<V>');