mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
18 lines
388 B
Plaintext
18 lines
388 B
Plaintext
emptyIndexer.ts(12,9): error TS2454: Variable 'x' is used before being assigned.
|
|
|
|
|
|
==== emptyIndexer.ts (1 errors) ====
|
|
interface I1 {
|
|
m(): number;
|
|
}
|
|
|
|
interface I2 {
|
|
[s:string]: I1;
|
|
}
|
|
|
|
|
|
var x: I2;
|
|
|
|
var n = x[''].m(); // should not crash compiler
|
|
~
|
|
!!! error TS2454: Variable 'x' is used before being assigned. |