TypeScript/tests/cases/fourslash/quickInfoInFunctionTypeReference.ts

15 lines
475 B
TypeScript
Raw Normal View History

2014-07-13 01:04:16 +02:00
/// <reference path='fourslash.ts' />
////function map(fn: (variab/*1*/le1: string) => void) {
////}
////var x = <{ (fn: (va/*2*/riable2: string) => void, a: string): void; }> () => { };
// this line triggers a semantic/syntactic error check, remove line when 788570 is fixed
edit.insert('');
goTo.marker("1");
2014-09-30 22:51:47 +02:00
verify.quickInfoIs("(parameter) variable1: string", undefined);
2014-07-13 01:04:16 +02:00
goTo.marker("2");
2014-09-30 22:51:47 +02:00
verify.quickInfoIs("(parameter) variable2: string", undefined);