mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
27 lines
643 B
TypeScript
27 lines
643 B
TypeScript
//// [tests/cases/conformance/es6/computedProperties/computedPropertyNames24_ES6.ts] ////
|
|
|
|
//// [computedPropertyNames24_ES6.ts]
|
|
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()]() { }
|
|
}
|
|
|
|
//// [computedPropertyNames24_ES6.js]
|
|
"use strict";
|
|
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()]() { }
|
|
}
|