TypeScript/tests/cases/fourslash/quickInfoForIndexerResultWithConstraint.ts
2016-09-13 11:49:01 -07:00

13 lines
311 B
TypeScript

/// <reference path='fourslash.ts'/>
////function foo<T>(x: T) {
//// return x;
////}
////function other2<T extends Date>(arg: T) {
//// var b: { [x: string]: T };
//// var /*1*/r2 = foo(b); // just shows T
////}
verify.quickInfoAt("1", "(local var) r2: {\n [x: string]: T;\n}");