TypeScript/tests/cases/fourslash/contextualTypingOfGenericCallSignatures2.ts
2017-06-06 13:35:29 -07:00

12 lines
341 B
TypeScript

/// <reference path='fourslash.ts'/>
////interface I {
//// <T>(x: T): void
////}
////function f6(x: <T extends I>(p: T) => void) { }
////// x should not be contextually typed so this should be an error
////f6(/**/x => x<number>())
verify.quickInfoAt("", "(parameter) x: T extends I");
verify.numberOfErrorsInCurrentFile(1);