TypeScript/tests/cases/fourslash/quickInfoInFunctionTypeReference2.ts

18 lines
471 B
TypeScript
Raw Normal View History

2014-08-30 03:02:05 +02:00
/// <reference path='fourslash.ts'/>
////class C<T> {
2014-09-30 22:51:47 +02:00
//// map(fn: (/*1*/k: string, /*2*/value: T, context: any) => void, context: any) {
2014-08-30 03:02:05 +02:00
//// }
////}
////var c: C<number>;
////c.map(/*3*/
2014-09-30 22:51:47 +02:00
goTo.marker('1');
verify.quickInfoIs('(parameter) k: string');
2014-08-30 03:02:05 +02:00
2014-09-30 22:51:47 +02:00
goTo.marker('2');
verify.quickInfoIs('(parameter) value: T');
2014-08-30 03:02:05 +02:00
goTo.marker('3');
verify.currentSignatureHelpIs('map(fn: (k: string, value: number, context: any) => void, context: any): void');