15 lines
542 B
Plaintext
15 lines
542 B
Plaintext
tests/cases/conformance/es6/computedProperties/computedPropertyNames34.ts(5,18): error TS2302: Static members cannot reference class type parameters.
|
|
|
|
|
|
==== tests/cases/conformance/es6/computedProperties/computedPropertyNames34.ts (1 errors) ====
|
|
function foo<T>() { return '' }
|
|
class C<T> {
|
|
static bar() {
|
|
var obj = {
|
|
[foo<T>()]() { }
|
|
~
|
|
!!! error TS2302: Static members cannot reference class type parameters.
|
|
};
|
|
return 0;
|
|
}
|
|
} |