mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
37 lines
665 B
TypeScript
37 lines
665 B
TypeScript
//// [tests/cases/conformance/es6/computedProperties/computedPropertyNames31_ES6.ts] ////
|
|
|
|
//// [computedPropertyNames31_ES6.ts]
|
|
class Base {
|
|
bar() {
|
|
return 0;
|
|
}
|
|
}
|
|
class C extends Base {
|
|
foo() {
|
|
() => {
|
|
var obj = {
|
|
[super.bar()]() { } // needs capture
|
|
};
|
|
}
|
|
return 0;
|
|
}
|
|
}
|
|
|
|
//// [computedPropertyNames31_ES6.js]
|
|
"use strict";
|
|
class Base {
|
|
bar() {
|
|
return 0;
|
|
}
|
|
}
|
|
class C extends Base {
|
|
foo() {
|
|
() => {
|
|
var obj = {
|
|
[super.bar()]() { } // needs capture
|
|
};
|
|
};
|
|
return 0;
|
|
}
|
|
}
|