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