TypeScript/tests/baselines/reference/computedPropertyNamesContextualType4_ES5.types
2015-04-13 14:29:37 -07:00

29 lines
851 B
Plaintext

=== tests/cases/conformance/es6/computedProperties/computedPropertyNamesContextualType4_ES5.ts ===
interface I {
>I : I, Symbol(I, Decl(computedPropertyNamesContextualType4_ES5.ts, 0, 0))
[s: string]: any;
>s : string, Symbol(s, Decl(computedPropertyNamesContextualType4_ES5.ts, 1, 5))
[s: number]: any;
>s : number, Symbol(s, Decl(computedPropertyNamesContextualType4_ES5.ts, 2, 5))
}
var o: I = {
>o : I, Symbol(o, Decl(computedPropertyNamesContextualType4_ES5.ts, 5, 3))
>I : I, Symbol(I, Decl(computedPropertyNamesContextualType4_ES5.ts, 0, 0))
>{ [""+"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
}