TypeScript/tests/cases/fourslash/addMethodToInterface1.ts
2014-08-01 14:36:18 -07:00

16 lines
368 B
TypeScript

/// <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();
goTo.marker('1');
edit.insert(" compareTo(): number;\n");
diagnostics.validateTypesAtPositions(168,84,53,118,22);