TypeScript/tests/baselines/reference/typeofTypeParameter.js

14 lines
207 B
TypeScript
Raw Normal View History

2014-07-13 01:04:16 +02:00
//// [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;
}