2014-08-30 03:02:05 +02:00
|
|
|
/// <reference path='fourslash.ts'/>
|
|
|
|
|
|
|
|
////var foo: {
|
|
|
|
//// (name: string): string;
|
|
|
|
//// (name: 'order'): string;
|
|
|
|
//// (name: 'content'): string;
|
|
|
|
//// (name: 'done'): string;
|
|
|
|
////}
|
|
|
|
|
2014-10-07 20:30:27 +02:00
|
|
|
////var /*2*/x = foo(/*1*/
|
2014-08-30 03:02:05 +02:00
|
|
|
|
|
|
|
goTo.marker('1');
|
|
|
|
verify.signatureHelpCountIs(4);
|
|
|
|
verify.currentSignatureHelpIs('foo(name: string): string');
|
|
|
|
edit.insert('"hi"');
|
|
|
|
|
2014-10-07 20:30:27 +02:00
|
|
|
goTo.marker('2');
|
|
|
|
verify.quickInfoIs('(var) x: string');
|