2015-02-03 02:36:45 +01:00
|
|
|
//// [computedPropertyNames24_ES6.ts]
|
2015-01-20 01:27:58 +01:00
|
|
|
class Base {
|
|
|
|
bar() {
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
class C extends Base {
|
|
|
|
// Gets emitted as super, not _super, which is consistent with
|
|
|
|
// use of super in static properties initializers.
|
|
|
|
[super.bar()]() { }
|
|
|
|
}
|
|
|
|
|
2015-02-03 02:36:45 +01:00
|
|
|
//// [computedPropertyNames24_ES6.js]
|
2015-03-16 00:29:41 +01:00
|
|
|
class Base {
|
|
|
|
bar() {
|
2015-01-20 01:27:58 +01:00
|
|
|
return 0;
|
|
|
|
}
|
2015-03-16 00:29:41 +01:00
|
|
|
}
|
|
|
|
class C extends Base {
|
2015-01-20 01:27:58 +01:00
|
|
|
// Gets emitted as super, not _super, which is consistent with
|
|
|
|
// use of super in static properties initializers.
|
2015-03-16 00:29:41 +01:00
|
|
|
[super.bar()]() {
|
|
|
|
}
|
|
|
|
}
|