Skip to content

Commit 34710a3

Browse files
committed
Fix fourslash tests
1 parent 61223f2 commit 34710a3

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
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: T extends T");
10+
verify.quickInfoAt("", "(parameter) x: T extends I");
1111
verify.numberOfErrorsInCurrentFile(1);

tests/cases/fourslash/contextuallyTypedFunctionExpressionGeneric1.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
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({
1313
1: "(parameter) xx: T extends Comparable<T>",

0 commit comments

Comments
 (0)