TypeScript Version: nightly (2.5.0-dev.20170908)
Code
typeIdMapped<T>={[KinkeyofT]: T[K]}declareconstf: <T>()=>IdMapped<T>;declareconstg: <U>()=>{[KinkeyofU]: U[K]};// Type 'IdMapped<{}>' is not assignable to type '{ [K in keyof T]: T[K]; }'consth: typeofg=f;Expected behavior:
Should compile without errors. T should be inferred as U.
TypeScript Version: nightly (2.5.0-dev.20170908)
Code
Expected behavior:
Should compile without errors.
Tshould be inferred asU.