TypeScript/tests/cases/fourslash/completionListInContextuallyTypedArgument.ts
2014-09-15 13:53:25 -07:00

27 lines
550 B
TypeScript

/// <reference path='fourslash.ts' />
////interface MyPoint {
//// x1: number;
//// y1: number;
////}
////
////function foo(a: (e: MyPoint) => string) { }
////foo((e) => {
//// e./*1*/
////} );
////
////class test {
//// constructor(a: (e: MyPoint) => string) { }
////}
////var t = new test((e) => {
//// e./*2*/
////} );
goTo.marker("1");
verify.completionListContains('x1');
verify.completionListContains('y1');
goTo.marker("2");
verify.completionListContains('x1');
verify.completionListContains('y1');