3 lines
229 B
TypeScript
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
|