36 lines
716 B
Plaintext
36 lines
716 B
Plaintext
|
=== tests/cases/conformance/es6/computedProperties/computedPropertyNames31_ES5.ts ===
|
||
|
class Base {
|
||
|
>Base : Base
|
||
|
|
||
|
bar() {
|
||
|
>bar : () => number
|
||
|
|
||
|
return 0;
|
||
|
}
|
||
|
}
|
||
|
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;
|
||
|
}
|
||
|
}
|