2014-07-13 01:04:16 +02:00
|
|
|
/// <reference path='fourslash.ts'/>
|
|
|
|
|
|
|
|
////interface I {
|
|
|
|
//// x/*1*/1(a: number, callback: (x: 'hi') => number);
|
|
|
|
////}
|
|
|
|
|
|
|
|
////class C {
|
|
|
|
//// x/*2*/1(a: number, call/*3*/back: (x: 'hi') => number);
|
|
|
|
//// x/*4*/1(a: number, call/*5*/back: (x: string) => number) {
|
|
|
|
//// call/*6*/back('hi');
|
|
|
|
//// callback('bye');
|
|
|
|
//// var hm = "hm";
|
|
|
|
//// callback(hm);
|
|
|
|
//// }
|
|
|
|
////}
|
|
|
|
|
|
|
|
////var c: C;
|
|
|
|
////c.x/*7*/1(1, (x/*8*/x: 'hi') => { return 1; } );
|
|
|
|
////c.x1(1, (x/*9*/x: 'bye') => { return 1; } );
|
|
|
|
////c.x1(1, (x/*10*/x) => { return 1; } );
|
|
|
|
|
|
|
|
goTo.marker('1');
|
2014-09-30 22:51:47 +02:00
|
|
|
verify.quickInfoIs("(method) I.x1(a: number, callback: (x: 'hi') => number): any");
|
2014-07-13 01:04:16 +02:00
|
|
|
goTo.marker('2');
|
2014-09-30 22:51:47 +02:00
|
|
|
verify.quickInfoIs("(method) C.x1(a: number, callback: (x: 'hi') => number): any");
|
2014-07-13 01:04:16 +02:00
|
|
|
goTo.marker('3');
|
2014-09-30 22:51:47 +02:00
|
|
|
verify.quickInfoIs("(parameter) callback: (x: 'hi') => number");
|
2014-07-13 01:04:16 +02:00
|
|
|
goTo.marker('4');
|
2014-09-30 22:51:47 +02:00
|
|
|
verify.quickInfoIs("(method) C.x1(a: number, callback: (x: 'hi') => number): any");
|
2014-07-13 01:04:16 +02:00
|
|
|
goTo.marker('5');
|
2014-09-30 22:51:47 +02:00
|
|
|
verify.quickInfoIs('(parameter) callback: (x: string) => number');
|
2014-07-13 01:04:16 +02:00
|
|
|
goTo.marker('6');
|
2014-10-06 23:24:58 +02:00
|
|
|
verify.quickInfoIs('(parameter) callback: (x: string) => number');
|
2014-07-13 01:04:16 +02:00
|
|
|
goTo.marker('7');
|
2014-09-30 22:51:47 +02:00
|
|
|
verify.quickInfoIs("(method) C.x1(a: number, callback: (x: 'hi') => number): any");
|
2014-07-13 01:04:16 +02:00
|
|
|
goTo.marker('8');
|
2014-09-30 22:51:47 +02:00
|
|
|
verify.quickInfoIs("(parameter) xx: 'hi'");
|
2014-07-13 01:04:16 +02:00
|
|
|
goTo.marker('9');
|
2014-09-30 22:51:47 +02:00
|
|
|
verify.quickInfoIs("(parameter) xx: 'bye'");
|
2014-07-13 01:04:16 +02:00
|
|
|
goTo.marker('10');
|
2014-09-30 22:51:47 +02:00
|
|
|
verify.quickInfoIs("(parameter) xx: 'hi'");
|