2014-07-13 01:04:16 +02:00
|
|
|
/// <reference path='fourslash.ts'/>
|
|
|
|
|
|
|
|
////class A<T> { }
|
|
|
|
////class B<T> {/*B*/ }
|
|
|
|
////class C<T> { /*C*/constructor(val: T) { } }
|
|
|
|
////class D<T> { constructor(/*D*/val: T) { } }
|
|
|
|
////
|
2014-10-07 20:30:27 +02:00
|
|
|
////new /*Asig*/A<string>();
|
|
|
|
////new /*Bsig*/B("");
|
|
|
|
////new /*Csig*/C("");
|
|
|
|
////new /*Dsig*/D<string>();
|
2014-07-13 01:04:16 +02:00
|
|
|
|
|
|
|
var A = 'A';
|
|
|
|
var B = 'B';
|
|
|
|
var C = 'C';
|
|
|
|
var D = 'D'
|
|
|
|
goTo.marker(B);
|
|
|
|
edit.insert('constructor(val: T) { }');
|
|
|
|
goTo.marker('Asig');
|
2014-10-07 20:30:27 +02:00
|
|
|
verify.quickInfoIs("(constructor) A<string>(): A<string>");
|
2014-07-13 01:04:16 +02:00
|
|
|
|
|
|
|
goTo.marker('Bsig');
|
2014-10-07 20:30:27 +02:00
|
|
|
verify.quickInfoIs("(constructor) B<string>(val: string): B<string>");
|
2014-07-13 01:04:16 +02:00
|
|
|
|
|
|
|
goTo.marker('Csig');
|
2014-10-07 20:30:27 +02:00
|
|
|
verify.quickInfoIs("(constructor) C<string>(val: string): C<string>");
|
2014-07-13 01:04:16 +02:00
|
|
|
|
|
|
|
goTo.marker('Dsig');
|
2014-10-08 00:28:08 +02:00
|
|
|
verify.quickInfoIs("(constructor) D<T>(val: T): D<T>"); // Cannot resolve signature
|
2014-07-13 01:04:16 +02:00
|
|
|
|
|
|
|
goTo.marker(C);
|
|
|
|
edit.deleteAtCaret('constructor(val: T) { }'.length);
|
|
|
|
goTo.marker('Asig');
|
2014-10-07 20:30:27 +02:00
|
|
|
verify.quickInfoIs("(constructor) A<string>(): A<string>");
|
2014-07-13 01:04:16 +02:00
|
|
|
|
|
|
|
goTo.marker('Bsig');
|
2014-10-07 20:30:27 +02:00
|
|
|
verify.quickInfoIs("(constructor) B<string>(val: string): B<string>");
|
2014-07-13 01:04:16 +02:00
|
|
|
|
|
|
|
goTo.marker('Csig');
|
2014-10-08 00:28:08 +02:00
|
|
|
verify.quickInfoIs("(constructor) C<T>(): C<T>"); // Cannot resolve signature
|
2014-07-13 01:04:16 +02:00
|
|
|
|
|
|
|
goTo.marker('Dsig');
|
2014-10-08 00:28:08 +02:00
|
|
|
verify.quickInfoIs("(constructor) D<T>(val: T): D<T>"); // Cannot resolve signature
|
2014-07-13 01:04:16 +02:00
|
|
|
|
|
|
|
goTo.marker(D);
|
|
|
|
edit.deleteAtCaret("val: T".length);
|
|
|
|
goTo.marker('Asig');
|
2014-10-07 20:30:27 +02:00
|
|
|
verify.quickInfoIs("(constructor) A<string>(): A<string>");
|
2014-07-13 01:04:16 +02:00
|
|
|
|
|
|
|
goTo.marker('Bsig');
|
2014-10-07 20:30:27 +02:00
|
|
|
verify.quickInfoIs("(constructor) B<string>(val: string): B<string>");
|
2014-07-13 01:04:16 +02:00
|
|
|
|
|
|
|
goTo.marker('Csig');
|
2014-10-08 00:28:08 +02:00
|
|
|
verify.quickInfoIs("(constructor) C<T>(): C<T>"); // Cannot resolve signature
|
2014-07-13 01:04:16 +02:00
|
|
|
|
|
|
|
goTo.marker('Dsig');
|
2014-10-07 20:30:27 +02:00
|
|
|
verify.quickInfoIs("(constructor) D<string>(): D<string>");
|