2014-07-13 01:04:16 +02:00
|
|
|
/// <reference path="fourslash.ts" />
|
|
|
|
|
|
|
|
//// interface Comparable<T> {
|
|
|
|
//// /*1*/}
|
|
|
|
//// interface Comparer {
|
|
|
|
//// }
|
|
|
|
//// var max2: Comparer = (x, y) => { return (x.compareTo(y) > 0) ? x : y };
|
|
|
|
//// var maxResult = max2(1);
|
|
|
|
|
|
|
|
edit.disableFormatting();
|
|
|
|
|
2014-08-01 22:50:59 +02:00
|
|
|
goTo.marker('1');
|
2014-07-13 01:04:16 +02:00
|
|
|
|
|
|
|
edit.insert(" compareTo(): number;\n");
|
|
|
|
diagnostics.validateTypesAtPositions(168,84,53,118,22);
|