TypeScript/tests/cases/compiler/genericTypeAssertions3.ts

3 lines
229 B
TypeScript
Raw Normal View History

2014-07-13 01:04:16 +02:00
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