TypeScript/tests/baselines/reference/typeofTypeParameter.js
2014-07-12 17:30:19 -07:00

14 lines
207 B
TypeScript

//// [typeofTypeParameter.ts]
function f<T>(x: T): T {
var a: typeof x;
var y: typeof T;
return a;
}
//// [typeofTypeParameter.js]
function f(x) {
var a;
var y;
return a;
}