TypeScript/tests/cases/fourslash/returnTypeOfGenericFunction1.ts

10 lines
263 B
TypeScript
Raw Normal View History

2014-07-13 01:04:16 +02:00
/// <reference path='fourslash.ts'/>
////interface WrappedArray<T> {
//// map<U>(iterator: (value: T) => U, context?: any): U[];
////}
////var x: WrappedArray<string>;
2014-10-07 20:30:27 +02:00
////var /**/y = x.map(s => s.length);
2014-07-13 01:04:16 +02:00
2016-09-09 18:02:55 +02:00
verify.quickInfoAt("", "var y: number[]");