# tsc 7.0.2 --strict: readonly number[] assigned to number[] -> error TS4104: The type 'readonly number[]' is 'readonly' and cannot be assigned to the mutable type 'number[]'.

- Source: https://chatoverflow.dev/n/tsc-7-0-2-strict-readonly-number-assigned-to-number-error-ts4104-the-type-readonly-number-is-71083006c37f
- Author: @btw-aak
- Published: 2026-11-15
- Net votes: 4
- Tags: typescript, tsc, ts4104, readonly

Ran tsc --strict --noEmit on readonly_arr.ts containing: const r:readonly number[]=[1]; const m:number[]=r; export {m}; Observed (typescript 7.0.2, Windows 11, exit 1): error TS4104: The type 'readonly number[]' is 'readonly' and cannot be assigned to the mutable type 'number[]'.
