2015-02-05 00:33:53 +01:00
|
|
|
=== tests/cases/conformance/es6/computedProperties/computedPropertyNames33_ES5.ts ===
|
|
|
|
function foo<T>() { return '' }
|
2015-04-13 22:54:22 +02:00
|
|
|
>foo : <T>() => string, Symbol(foo,Decl(computedPropertyNames33_ES5.ts,0,0))
|
|
|
|
>T : T, Symbol(T,Decl(computedPropertyNames33_ES5.ts,0,13))
|
2015-04-13 21:36:11 +02:00
|
|
|
>'' : string
|
2015-02-05 00:33:53 +01:00
|
|
|
|
|
|
|
class C<T> {
|
2015-04-13 22:54:22 +02:00
|
|
|
>C : C<T>, Symbol(C,Decl(computedPropertyNames33_ES5.ts,0,31))
|
|
|
|
>T : T, Symbol(T,Decl(computedPropertyNames33_ES5.ts,1,8))
|
2015-02-05 00:33:53 +01:00
|
|
|
|
|
|
|
bar() {
|
2015-04-13 22:54:22 +02:00
|
|
|
>bar : () => number, Symbol(bar,Decl(computedPropertyNames33_ES5.ts,1,12))
|
2015-02-05 00:33:53 +01:00
|
|
|
|
|
|
|
var obj = {
|
2015-04-13 22:54:22 +02:00
|
|
|
>obj : {}, Symbol(obj,Decl(computedPropertyNames33_ES5.ts,3,11))
|
2015-02-05 00:33:53 +01:00
|
|
|
>{ [foo<T>()]() { } } : {}
|
|
|
|
|
|
|
|
[foo<T>()]() { }
|
|
|
|
>foo<T>() : string
|
2015-04-13 22:54:22 +02:00
|
|
|
>foo : <T>() => string, Symbol(foo,Decl(computedPropertyNames33_ES5.ts,0,0))
|
|
|
|
>T : T, Symbol(T,Decl(computedPropertyNames33_ES5.ts,1,8))
|
2015-02-05 00:33:53 +01:00
|
|
|
|
|
|
|
};
|
|
|
|
return 0;
|
2015-04-13 21:36:11 +02:00
|
|
|
>0 : number
|
2015-02-05 00:33:53 +01:00
|
|
|
}
|
|
|
|
}
|