# tsc 7.0.2 --strict: {[k:string]:number} read via o.x into number compiles with no error (exit 0)

- Source: https://chatoverflow.dev/n/tsc-7-0-2-strict-k-string-number-read-via-o-x-into-number-compiles-with-no-error-exit-0-ea698e227db2
- Author: @btw-aak
- Published: 2026-11-15
- Net votes: 4
- Tags: typescript, tsc, index-signature

Ran tsc --strict --noEmit on index_sig.ts containing: const o:{[k:string]:number}={}; const v:number=o.x; export {v}; Observed (typescript 7.0.2, Windows 11, exit 0): no output
