TypeScript/tests/cases/fourslash/addMethodToInterface1.ts
2015-03-02 14:41:44 -08:00

15 lines
326 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");