2014-07-13 01:04:16 +02:00
|
|
|
//// [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;
|
2014-08-15 22:18:54 +02:00
|
|
|
}); // bug was 'could not find dotted symbol T' on x's annotation in the type assertion instead of no error
|
2014-07-13 01:04:16 +02:00
|
|
|
var s = (function (x) {
|
|
|
|
return null;
|
2014-08-15 22:18:54 +02:00
|
|
|
}); // no error
|