TypeScript/tests/cases/fourslash/quickInfoForIndexerResultWithConstraint.ts

13 lines
311 B
TypeScript
Raw Normal View History

2014-07-13 01:04:16 +02:00
/// <reference path='fourslash.ts'/>
////function foo<T>(x: T) {
//// return x;
////}
////function other2<T extends Date>(arg: T) {
//// var b: { [x: string]: T };
2014-09-30 22:51:47 +02:00
//// var /*1*/r2 = foo(b); // just shows T
2014-07-13 01:04:16 +02:00
////}
2016-09-09 18:02:55 +02:00
verify.quickInfoAt("1", "(local var) r2: {\n [x: string]: T;\n}");