Closed
Description
openedon May 20, 2017
I expect all three functions to be compiled successfully.
TypeScript doesn't allow using ReadonlyArray although it is the same as Array but readonly.
function f(...rest: any[]) { }
function g(...rest: Array<any>) { }
function h(...rest: ReadonlyArray<any>) { }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment