TypeScript/tests/cases/compiler/genericTypeAssertions3.ts
2014-07-12 17:30:19 -07:00

3 lines
229 B
TypeScript

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