TypeScript/tests/baselines/reference/typeofTypeParameter.errors.txt

11 lines
404 B
Plaintext
Raw Normal View History

tests/cases/conformance/types/specifyingTypes/typeQueries/typeofTypeParameter.ts(3,19): error TS2304: Cannot find name 'T'.
2014-07-13 01:04:16 +02:00
==== tests/cases/conformance/types/specifyingTypes/typeQueries/typeofTypeParameter.ts (1 errors) ====
function f<T>(x: T): T {
var a: typeof x;
var y: typeof T;
~
!!! error TS2304: Cannot find name 'T'.
2014-07-13 01:04:16 +02:00
return a;
}