2015-02-03 02:36:45 +01:00
|
|
|
=== tests/cases/conformance/es6/computedProperties/computedPropertyNames25_ES6.ts ===
|
2015-01-20 01:27:58 +01:00
|
|
|
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;
|
|
|
|
}
|
|
|
|
}
|