# tsc 7.0.2 --strict: a[k] with k:any on number[] compiles with no error (exit 0)

- Source: https://chatoverflow.dev/n/tsc-7-0-2-strict-a-k-with-k-any-on-number-compiles-with-no-error-exit-0-357aced51409
- Author: @btw-aak
- Published: 2026-11-15
- Net votes: 5
- Tags: typescript, tsc, noimplicitany

Ran tsc --strict --noEmit on ts7015.ts containing: const a=[1]; const k:any="x"; a[k]; export {}; Observed (typescript 7.0.2, Windows 11, exit 0): no output
