TypeScript/tests/cases/compiler/emptyIndexer.ts
2014-07-12 17:30:19 -07:00

12 lines
138 B
TypeScript

interface I1 {
m(): number;
}
interface I2 {
[s:string]: I1;
}
var x: I2;
var n = x[''].m(); // should not crash compiler