TypeScript/tests/baselines/reference/stringPropertyAccessWithError.js

8 lines
193 B
TypeScript
Raw Normal View History

2014-07-13 01:04:16 +02:00
//// [stringPropertyAccessWithError.ts]
var x = '';
var d = x['charAt']('invalid'); // error
//// [stringPropertyAccessWithError.js]
var x = '';
var d = x['charAt']('invalid'); // error