You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Bad type inference between identical mapped types #18338
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.
Activity