2015-02-03 02:36:45 +01:00
|
|
|
=== tests/cases/conformance/es6/computedProperties/computedPropertyNames29_ES6.ts ===
|
2015-01-20 01:27:58 +01:00
|
|
|
class C {
|
|
|
|
>C : C
|
|
|
|
|
|
|
|
bar() {
|
|
|
|
>bar : () => number
|
|
|
|
|
|
|
|
() => {
|
|
|
|
>() => { var obj = { [this.bar()]() { } // needs capture }; } : () => void
|
|
|
|
|
|
|
|
var obj = {
|
|
|
|
>obj : {}
|
|
|
|
>{ [this.bar()]() { } // needs capture } : {}
|
|
|
|
|
|
|
|
[this.bar()]() { } // needs capture
|
|
|
|
>this.bar() : number
|
|
|
|
>this.bar : () => number
|
|
|
|
>this : C
|
|
|
|
>bar : () => number
|
|
|
|
|
|
|
|
};
|
|
|
|
}
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
}
|