mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
21 lines
303 B
TypeScript
21 lines
303 B
TypeScript
//// [tests/cases/compiler/emptyIndexer.ts] ////
|
|
|
|
//// [emptyIndexer.ts]
|
|
interface I1 {
|
|
m(): number;
|
|
}
|
|
|
|
interface I2 {
|
|
[s:string]: I1;
|
|
}
|
|
|
|
|
|
var x: I2;
|
|
|
|
var n = x[''].m(); // should not crash compiler
|
|
|
|
//// [emptyIndexer.js]
|
|
"use strict";
|
|
var x;
|
|
var n = x[''].m(); // should not crash compiler
|