Fix fourslash tests

This commit is contained in:
Anders Hejlsberg 2017-06-06 13:35:29 -07:00
parent 61223f2ab0
commit 34710a33b5
2 changed files with 8 additions and 8 deletions

View file

@ -7,5 +7,5 @@
////// x should not be contextually typed so this should be an error
////f6(/**/x => x<number>())
verify.quickInfoAt("", "(parameter) x: T extends T");
verify.quickInfoAt("", "(parameter) x: T extends I");
verify.numberOfErrorsInCurrentFile(1);

View file

@ -1,13 +1,13 @@
/// <reference path='fourslash.ts'/>
interface Comparable<T> {
compareTo(other: T): T;
}
interface Comparer {
<T extends Comparable<T>>(x: T, y: T): T;
}
////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) };
////var max2: Comparer = (x/*1*/x, y/*2*/y) => { return x/*3*/x.compareTo(y/*4*/y) };
verify.quickInfos({
1: "(parameter) xx: T extends Comparable<T>",