typeofTypeParameter.ts(3,20): error TS2693: 'T' only refers to a type, but is being used as a value here.


==== typeofTypeParameter.ts (1 errors) ====
    function f<T>(x: T): T {
        var a!: typeof x;
        var y!: typeof T;
                       ~
!!! error TS2693: 'T' only refers to a type, but is being used as a value here.
        return a;
    }