TypeScript Version:
nightly (1.9.0-dev.20160213)
Code
interfaceGeo{latlng: [number,number]// tuple}functionworld(geo: Geo){}world({latlng: [35,-112]});// works fineletcoordinates={latlng: [35,-112]};world(coordinates);// errorsletcoordinatesTyped: Geo={latlng: [35,-112]};world(coordinatesTyped);// works fineExpected behavior:
Compile without errors.
Actual behavior:
Error, [T] tuple type information is lost as T[]:
Type 'number[]' is not assignable to type '[number, number]'.
TypeScript Version:
nightly (1.9.0-dev.20160213)
Code
Expected behavior:
Compile without errors.
Actual behavior:
Error,
[T]tuple type information is lost asT[]: