2015-02-05 00:33:53 +01:00
|
|
|
=== tests/cases/conformance/es6/computedProperties/computedPropertyNames29_ES5.ts ===
|
|
|
|
class C {
|
2015-04-13 23:01:57 +02:00
|
|
|
>C : C, Symbol(C, Decl(computedPropertyNames29_ES5.ts, 0, 0))
|
2015-02-05 00:33:53 +01:00
|
|
|
|
|
|
|
bar() {
|
2015-04-13 23:01:57 +02:00
|
|
|
>bar : () => number, Symbol(bar, Decl(computedPropertyNames29_ES5.ts, 0, 9))
|
2015-02-05 00:33:53 +01:00
|
|
|
|
|
|
|
() => {
|
|
|
|
>() => { var obj = { [this.bar()]() { } // needs capture }; } : () => void
|
|
|
|
|
|
|
|
var obj = {
|
2015-04-13 23:01:57 +02:00
|
|
|
>obj : {}, Symbol(obj, Decl(computedPropertyNames29_ES5.ts, 3, 15))
|
2015-02-05 00:33:53 +01:00
|
|
|
>{ [this.bar()]() { } // needs capture } : {}
|
|
|
|
|
|
|
|
[this.bar()]() { } // needs capture
|
|
|
|
>this.bar() : number
|
2015-04-13 23:01:57 +02:00
|
|
|
>this.bar : () => number, Symbol(bar, Decl(computedPropertyNames29_ES5.ts, 0, 9))
|
|
|
|
>this : C, Symbol(C, Decl(computedPropertyNames29_ES5.ts, 0, 0))
|
|
|
|
>bar : () => number, Symbol(bar, Decl(computedPropertyNames29_ES5.ts, 0, 9))
|
2015-02-05 00:33:53 +01:00
|
|
|
|
|
|
|
};
|
|
|
|
}
|
|
|
|
return 0;
|
2015-04-13 21:36:11 +02:00
|
|
|
>0 : number
|
2015-02-05 00:33:53 +01:00
|
|
|
}
|
|
|
|
}
|