2014-07-13 01:04:16 +02:00
|
|
|
//// [reverseInferenceInContextualInstantiation.ts]
|
|
|
|
function compare<T>(a: T, b: T): number { return 0; }
|
|
|
|
var x: number[];
|
|
|
|
x.sort(compare); // Error, but shouldn't be
|
|
|
|
|
|
|
|
|
|
|
|
//// [reverseInferenceInContextualInstantiation.js]
|
2015-03-26 21:46:35 +01:00
|
|
|
function compare(a, b) { return 0; }
|
2014-07-13 01:04:16 +02:00
|
|
|
var x;
|
2014-08-16 00:49:09 +02:00
|
|
|
x.sort(compare); // Error, but shouldn't be
|