```ts declare function foo(...x: readonly any[]): any type FooParams = Parameters<typeof foo>; declare function bar(...x: readonly number[]): any type BarParams = Parameters<typeof bar> ``` **Expected**: * `FooParams` is `any[]` or `readonly any[]` * `BarParams` is `number[]` or `readonly number[]` **Actual** * `FooParams` is `unknown[]` * `BarParams` is `never` [Playground link](http://www.typescriptlang.org/play/index.html#code/PTAEHUEsBcAsHsCu1QCcCmBDAJvAdgDYCeAsAFDnboDGBmGoAZontdJPk-PABQB0AgB4AuUJjxEA2gF0AlKPGkKZaEQAO6UADFuABXqYAtgGdQAXlD7UR9NHSpjAHlUb4jLvAB8AbnKUadAzMrOycAEb0-EKieIiGYfYy8mISfirqmgBC9FZGpha5hrb2Ti7obqARqJ5pIBAwsGhYuIRK-rT0msFsHHhojNxRfCJNOPjEKVJyCqnKZaAASjrwhfmWBkV2Ds4ZFagDXr7KVB1BLD2cqFVDIxhjraCx8YnTk2nzC9moq+br1pslHaudxXeg1MhAA)