TypeScript/tests/baselines/reference/computedPropertyNamesContextualType4_ES5.types
2015-04-15 16:44:20 -07:00

29 lines
511 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
>"" : string
>"foo" : string
>"" : string
[""+"bar"]: 0
>""+"bar" : string
>"" : string
>"bar" : string
>0 : number
}