From 34710a33b5a8f18f1cdc9fa9ec728968e6e16c1e Mon Sep 17 00:00:00 2001 From: Anders Hejlsberg Date: Tue, 6 Jun 2017 13:35:29 -0700 Subject: [PATCH] Fix fourslash tests --- .../contextualTypingOfGenericCallSignatures2.ts | 2 +- .../contextuallyTypedFunctionExpressionGeneric1.ts | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/tests/cases/fourslash/contextualTypingOfGenericCallSignatures2.ts b/tests/cases/fourslash/contextualTypingOfGenericCallSignatures2.ts index 7bc95085e2..efb26cb3af 100644 --- a/tests/cases/fourslash/contextualTypingOfGenericCallSignatures2.ts +++ b/tests/cases/fourslash/contextualTypingOfGenericCallSignatures2.ts @@ -7,5 +7,5 @@ ////// x should not be contextually typed so this should be an error ////f6(/**/x => x()) -verify.quickInfoAt("", "(parameter) x: T extends T"); +verify.quickInfoAt("", "(parameter) x: T extends I"); verify.numberOfErrorsInCurrentFile(1); diff --git a/tests/cases/fourslash/contextuallyTypedFunctionExpressionGeneric1.ts b/tests/cases/fourslash/contextuallyTypedFunctionExpressionGeneric1.ts index 7337a429d9..bfc4d7ea6f 100644 --- a/tests/cases/fourslash/contextuallyTypedFunctionExpressionGeneric1.ts +++ b/tests/cases/fourslash/contextuallyTypedFunctionExpressionGeneric1.ts @@ -1,13 +1,13 @@ /// -interface Comparable { - compareTo(other: T): T; -} -interface Comparer { - >(x: T, y: T): T; -} +////interface Comparable { +//// compareTo(other: T): T; +////} +////interface Comparer { +//// >(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",