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

8 lines
261 B
Plaintext
Raw Normal View History

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;
~
!!! Cannot find name 'T'.
return a;
}