TypeScript/tests/cases/compiler/mapOnTupleTypes02.ts
Daniel Rosenwasser 04b1c26120 Added test.
2016-09-28 12:26:30 -07:00

9 lines
196 B
TypeScript

// @declaration: true
// @noImplicitAny: true
// @strictNullChecks: true
export type Point = [number, number];
export function increment(point: Point) {
return point.map(d => d + 1);
}