TypeScript/tests/baselines/reference/genericTypeAssertions3.js

9 lines
501 B
TypeScript

//// [genericTypeAssertions3.ts]
var r = < <T>(x: T) => T > ((x) => { return null; }); // bug was 'could not find dotted symbol T' on x's annotation in the type assertion instead of no error
var s = < <T>(x: T) => T > ((x: any) => { return null; }); // no error
//// [genericTypeAssertions3.js]
var r = (function (x) { return null; }); // bug was 'could not find dotted symbol T' on x's annotation in the type assertion instead of no error
var s = (function (x) { return null; }); // no error