40 lines
1.2 KiB
Text
40 lines
1.2 KiB
Text
=== tests/cases/conformance/es6/computedProperties/computedPropertyNames13_ES6.ts ===
|
|
var s: string;
|
|
>s : Symbol(s, Decl(computedPropertyNames13_ES6.ts, 0, 3))
|
|
|
|
var n: number;
|
|
>n : Symbol(n, Decl(computedPropertyNames13_ES6.ts, 1, 3))
|
|
|
|
var a: any;
|
|
>a : Symbol(a, Decl(computedPropertyNames13_ES6.ts, 2, 3))
|
|
|
|
class C {
|
|
>C : Symbol(C, Decl(computedPropertyNames13_ES6.ts, 2, 11))
|
|
|
|
[s]() {}
|
|
>s : Symbol(s, Decl(computedPropertyNames13_ES6.ts, 0, 3))
|
|
|
|
[n]() { }
|
|
>n : Symbol(n, Decl(computedPropertyNames13_ES6.ts, 1, 3))
|
|
|
|
static [s + s]() { }
|
|
>s : Symbol(s, Decl(computedPropertyNames13_ES6.ts, 0, 3))
|
|
>s : Symbol(s, Decl(computedPropertyNames13_ES6.ts, 0, 3))
|
|
|
|
[s + n]() { }
|
|
>s : Symbol(s, Decl(computedPropertyNames13_ES6.ts, 0, 3))
|
|
>n : Symbol(n, Decl(computedPropertyNames13_ES6.ts, 1, 3))
|
|
|
|
[+s]() { }
|
|
>s : Symbol(s, Decl(computedPropertyNames13_ES6.ts, 0, 3))
|
|
|
|
static [""]() { }
|
|
[0]() { }
|
|
[a]() { }
|
|
>a : Symbol(a, Decl(computedPropertyNames13_ES6.ts, 2, 3))
|
|
|
|
static [<any>true]() { }
|
|
[`hello bye`]() { }
|
|
static [`hello ${a} bye`]() { }
|
|
>a : Symbol(a, Decl(computedPropertyNames13_ES6.ts, 2, 3))
|
|
}
|