mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
21 lines
396 B
TypeScript
21 lines
396 B
TypeScript
//// [tests/cases/conformance/es6/computedProperties/computedPropertyNames32_ES6.ts] ////
|
|
|
|
//// [computedPropertyNames32_ES6.ts]
|
|
function foo<T>() { return '' }
|
|
class C<T> {
|
|
bar() {
|
|
return 0;
|
|
}
|
|
[foo<T>()]() { }
|
|
}
|
|
|
|
//// [computedPropertyNames32_ES6.js]
|
|
"use strict";
|
|
function foo() { return ''; }
|
|
class C {
|
|
bar() {
|
|
return 0;
|
|
}
|
|
[foo()]() { }
|
|
}
|