<!-- BUGS: Please use this template. --> <!-- QUESTIONS: This is not a general support forum! Ask Qs at http://stackoverflow.com/questions/tagged/typescript --> <!-- SUGGESTIONS: See https://github.com/Microsoft/TypeScript-wiki/blob/master/Writing-Good-Design-Proposals.md --> **TypeScript Version:** 2.4.1 **Code** ```ts export interface Identifiable { id: string; } export function test<T extends Identifiable>(): ReadonlyArray<T> { const result: ReadonlyArray<Identifiable> = []; return result; } ``` **Expected behavior:** Should compile ok. **Actual behavior:** ``` Error: 'Type 'ReadonlyArray<Identifiable>' is not assignable to type 'ReadonlyArray<T>'. Type 'Identifiable' is not assignable to type 'T'. ```'