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