2015-02-05 00:33:53 +01:00
|
|
|
=== tests/cases/conformance/es6/computedProperties/computedPropertyNamesContextualType4_ES5.ts ===
|
|
|
|
interface I {
|
2015-04-13 22:54:22 +02:00
|
|
|
>I : I, Symbol(I,Decl(computedPropertyNamesContextualType4_ES5.ts,0,0))
|
2015-02-05 00:33:53 +01:00
|
|
|
|
|
|
|
[s: string]: any;
|
2015-04-13 22:54:22 +02:00
|
|
|
>s : string, Symbol(s,Decl(computedPropertyNamesContextualType4_ES5.ts,1,5))
|
2015-02-05 00:33:53 +01:00
|
|
|
|
|
|
|
[s: number]: any;
|
2015-04-13 22:54:22 +02:00
|
|
|
>s : number, Symbol(s,Decl(computedPropertyNamesContextualType4_ES5.ts,2,5))
|
2015-02-05 00:33:53 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
var o: I = {
|
2015-04-13 22:54:22 +02:00
|
|
|
>o : I, Symbol(o,Decl(computedPropertyNamesContextualType4_ES5.ts,5,3))
|
|
|
|
>I : I, Symbol(I,Decl(computedPropertyNamesContextualType4_ES5.ts,0,0))
|
2015-02-05 00:33:53 +01:00
|
|
|
>{ [""+"foo"]: "", [""+"bar"]: 0} : { [x: string]: string | number; [x: number]: undefined; }
|
|
|
|
|
|
|
|
[""+"foo"]: "",
|
|
|
|
>""+"foo" : string
|
2015-04-13 21:36:11 +02:00
|
|
|
>"" : string
|
|
|
|
>"foo" : string
|
|
|
|
>"" : string
|
2015-02-05 00:33:53 +01:00
|
|
|
|
|
|
|
[""+"bar"]: 0
|
|
|
|
>""+"bar" : string
|
2015-04-13 21:36:11 +02:00
|
|
|
>"" : string
|
|
|
|
>"bar" : string
|
|
|
|
>0 : number
|
2015-02-05 00:33:53 +01:00
|
|
|
}
|