32 lines
511 B
Plaintext
32 lines
511 B
Plaintext
|
=== tests/cases/conformance/es6/computedProperties/computedPropertyNames25_ES5.ts ===
|
||
|
class Base {
|
||
|
>Base : Base
|
||
|
|
||
|
bar() {
|
||
|
>bar : () => number
|
||
|
|
||
|
return 0;
|
||
|
}
|
||
|
}
|
||
|
class C extends Base {
|
||
|
>C : C
|
||
|
>Base : Base
|
||
|
|
||
|
foo() {
|
||
|
>foo : () => number
|
||
|
|
||
|
var obj = {
|
||
|
>obj : {}
|
||
|
>{ [super.bar()]() { } } : {}
|
||
|
|
||
|
[super.bar()]() { }
|
||
|
>super.bar() : number
|
||
|
>super.bar : () => number
|
||
|
>super : Base
|
||
|
>bar : () => number
|
||
|
|
||
|
};
|
||
|
return 0;
|
||
|
}
|
||
|
}
|