This project is read-only.


TypeScript compiler crashes when assigning literal empty string as dictionary key


(Note: this also seems to still repro in

The following crashes the TypeScript compiler (0.9.1) irrespective of ES5/ES3/CommonJS/AMD:
interface Tests {
    [testName: string]: (test: string) => void

var tests: Tests = {};

tests[''] = function(test: string): void {
Specifying a non-empty string for the key does not cause a crash.
Closed Nov 19, 2013 at 9:29 PM by RyanCavanaugh
Thanks for reporting this! The issue has been fixed and can be tried out in the upcoming 0.9.5 release. We also have a beta available ( if you'd like to try it out.