37 lines
742 B
Text
37 lines
742 B
Text
=== tests/cases/conformance/es6/computedProperties/computedPropertyNames31_ES6.ts ===
|
|
class Base {
|
|
>Base : Base
|
|
|
|
bar() {
|
|
>bar : () => number
|
|
|
|
return 0;
|
|
>0 : number
|
|
}
|
|
}
|
|
class C extends Base {
|
|
>C : C
|
|
>Base : Base
|
|
|
|
foo() {
|
|
>foo : () => number
|
|
|
|
() => {
|
|
>() => { var obj = { [super.bar()]() { } // needs capture }; } : () => void
|
|
|
|
var obj = {
|
|
>obj : {}
|
|
>{ [super.bar()]() { } // needs capture } : {}
|
|
|
|
[super.bar()]() { } // needs capture
|
|
>super.bar() : number
|
|
>super.bar : () => number
|
|
>super : Base
|
|
>bar : () => number
|
|
|
|
};
|
|
}
|
|
return 0;
|
|
>0 : number
|
|
}
|
|
}
|