22 lines
259 B
TypeScript
22 lines
259 B
TypeScript
//// [indexerAssignability.ts]
|
|
var a: { [s: string]: string; };
|
|
var b: { [n: number]: string; };
|
|
var c: {};
|
|
|
|
a = b;
|
|
a = c;
|
|
b = a;
|
|
b = c;
|
|
c = a;
|
|
c = b;
|
|
|
|
//// [indexerAssignability.js]
|
|
var a;
|
|
var b;
|
|
var c;
|
|
a = b;
|
|
a = c;
|
|
b = a;
|
|
b = c;
|
|
c = a;
|
|
c = b;
|