5 lines
293 B
Plaintext
5 lines
293 B
Plaintext
==== tests/cases/conformance/types/primitives/string/stringPropertyAccessWithError.ts (1 errors) ====
|
|
var x = '';
|
|
var d = x['charAt']('invalid'); // error
|
|
~~~~~~~~~
|
|
!!! error TS2345: Argument of type 'string' is not assignable to parameter of type 'number'. |