43 lines
747 B
Plaintext
43 lines
747 B
Plaintext
=== tests/cases/compiler/indexerAssignability.ts ===
|
|
var a: { [s: string]: string; };
|
|
>a : { [s: string]: string; }
|
|
>s : string
|
|
|
|
var b: { [n: number]: string; };
|
|
>b : { [n: number]: string; }
|
|
>n : number
|
|
|
|
var c: {};
|
|
>c : {}
|
|
|
|
a = b;
|
|
>a = b : { [n: number]: string; }
|
|
>a : { [s: string]: string; }
|
|
>b : { [n: number]: string; }
|
|
|
|
a = c;
|
|
>a = c : {}
|
|
>a : { [s: string]: string; }
|
|
>c : {}
|
|
|
|
b = a;
|
|
>b = a : { [s: string]: string; }
|
|
>b : { [n: number]: string; }
|
|
>a : { [s: string]: string; }
|
|
|
|
b = c;
|
|
>b = c : {}
|
|
>b : { [n: number]: string; }
|
|
>c : {}
|
|
|
|
c = a;
|
|
>c = a : { [s: string]: string; }
|
|
>c : {}
|
|
>a : { [s: string]: string; }
|
|
|
|
c = b;
|
|
>c = b : { [n: number]: string; }
|
|
>c : {}
|
|
>b : { [n: number]: string; }
|
|
|