Skip to content

Commit 634c75c

Browse files
committed
Fix fourslash tests
1 parent 0f6f857 commit 634c75c

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

tests/cases/fourslash/contextualTypingOfGenericCallSignatures2.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@
77
////// x should not be contextually typed so this should be an error
88
////f6(/**/x => x<number>())
99

10-
verify.quickInfoAt("", "(parameter) x: any");
10+
verify.quickInfoAt("", "(parameter) x: T extends T");
1111
verify.numberOfErrorsInCurrentFile(1);
Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
/// <reference path='fourslash.ts'/>
22

3-
////interface Comparable<T> {
4-
//// compareTo(other: T): T;
5-
////}
6-
////interface Comparer {
7-
//// <T extends Comparable<T>>(x: T, y: T): T;
8-
////}
3+
interface Comparable<T> {
4+
compareTo(other: T): T;
5+
}
6+
interface Comparer {
7+
<T extends Comparable<T>>(x: T, y: T): T;
8+
}
99

10-
////var max2: Comparer = (x/*1*/x, y/*2*/y) => { return x/*3*/x.compareTo(y/*4*/y) };
10+
//var max2: Comparer = (x/*1*/x, y/*2*/y) => { return x/*3*/x.compareTo(y/*4*/y) };
1111

1212
verify.quickInfos({
13-
1: "(parameter) xx: any",
14-
2: "(parameter) yy: any",
15-
3: "(parameter) xx: any",
16-
4: "(parameter) yy: any"
13+
1: "(parameter) xx: T extends Comparable<T>",
14+
2: "(parameter) yy: T extends Comparable<T>",
15+
3: "(parameter) xx: T extends Comparable<T>",
16+
4: "(parameter) yy: T extends Comparable<T>"
1717
});

0 commit comments

Comments
 (0)