TypeScript/tests/baselines/reference/stringPropertyAccessWithError.errors.txt
2014-07-24 19:39:50 -07:00

5 lines
279 B
Plaintext

==== 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'.