1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
|
=== tests/cases/conformance/es6/computedProperties/computedPropertyNamesContextualType9_ES6.ts ===
interface I {
>I : Symbol(I, Decl(computedPropertyNamesContextualType9_ES6.ts, 0, 0))
[s: string]: boolean;
>s : Symbol(s, Decl(computedPropertyNamesContextualType9_ES6.ts, 1, 5))
[s: number]: boolean;
>s : Symbol(s, Decl(computedPropertyNamesContextualType9_ES6.ts, 2, 5))
}
var o: I = {
>o : Symbol(o, Decl(computedPropertyNamesContextualType9_ES6.ts, 5, 3))
>I : Symbol(I, Decl(computedPropertyNamesContextualType9_ES6.ts, 0, 0))
[+"foo"]: "",
>[+"foo"] : Symbol([+"foo"], Decl(computedPropertyNamesContextualType9_ES6.ts, 5, 12))
[+"bar"]: 0
>[+"bar"] : Symbol([+"bar"], Decl(computedPropertyNamesContextualType9_ES6.ts, 6, 17))
}
|