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