26 lines
581 B
Text
26 lines
581 B
Text
|
=== tests/cases/conformance/es6/computedProperties/computedPropertyNames29.ts ===
|
||
|
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;
|
||
|
}
|
||
|
}
|