// @target: es2015
// indexers should behave like other members when merging interface declarations

interface A {
    [x: number]: string;
}


interface A {
    [x: string]: { length: number };
}

var a: A;
var r = a[1];
var r2 = a['1'];
var r3 = a['hi'];