array-type-inference.ts(4,14): error TS2345: Argument of type 'string' is not assignable to parameter of type 'number'. ``` Compile error (expected)