27 lines
457 B
Text
27 lines
457 B
Text
=== tests/cases/conformance/es6/computedProperties/computedPropertyNames33_ES6.ts ===
|
|
function foo<T>() { return '' }
|
|
>foo : <T>() => string
|
|
>T : T
|
|
>'' : string
|
|
|
|
class C<T> {
|
|
>C : C<T>
|
|
>T : T
|
|
|
|
bar() {
|
|
>bar : () => number
|
|
|
|
var obj = {
|
|
>obj : {}
|
|
>{ [foo<T>()]() { } } : {}
|
|
|
|
[foo<T>()]() { }
|
|
>foo<T>() : string
|
|
>foo : <T>() => string
|
|
>T : T
|
|
|
|
};
|
|
return 0;
|
|
>0 : number
|
|
}
|
|
}
|