26 lines
430 B
Text
26 lines
430 B
Text
|
=== tests/cases/conformance/es6/computedProperties/computedPropertyNames33_ES5.ts ===
|
||
|
function foo<T>() { return '' }
|
||
|
>foo : <T>() => string
|
||
|
>T : T
|
||
|
|
||
|
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;
|
||
|
}
|
||
|
}
|