17 lines
435 B
TypeScript
17 lines
435 B
TypeScript
/// <reference path='fourslash.ts'/>
|
|
|
|
////interface Comparable<T> {
|
|
//// compareTo(other: T): T;
|
|
////}
|
|
////interface Comparer {
|
|
//// <T extends Comparable<T>>(x: T, y: T): T;
|
|
////}
|
|
|
|
////var max2: Comparer = (x/*1*/x, y/*2*/y) => { return x/*3*/x.compareTo(y/*4*/y) };
|
|
|
|
verify.quickInfos({
|
|
1: "(parameter) xx: any",
|
|
2: "(parameter) yy: any",
|
|
3: "(parameter) xx: any",
|
|
4: "(parameter) yy: any"
|
|
});
|