TypeScript/tests/baselines/reference/computedPropertyNamesContextualType4_ES5.types
2015-02-04 15:33:53 -08:00

23 lines
422 B
Plaintext

=== tests/cases/conformance/es6/computedProperties/computedPropertyNamesContextualType4_ES5.ts ===
interface I {
>I : I
[s: string]: any;
>s : string
[s: number]: any;
>s : number
}
var o: I = {
>o : I
>I : I
>{ [""+"foo"]: "", [""+"bar"]: 0} : { [x: string]: string | number; [x: number]: undefined; }
[""+"foo"]: "",
>""+"foo" : string
[""+"bar"]: 0
>""+"bar" : string
}